Skip to content

Commit

Permalink
Optimize duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
YoannQueret committed Feb 8, 2016
1 parent ef5be73 commit 05afd28
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,12 @@ def run_encoder(self):

if self.config.source_type == 'alsa':
args += ' -d %s' % (self.config.source_device)
if self.config.source_driftcomp == True:
args += ' -D'
if self.config.source_type == 'stream':
args += ' --vlc-uri=%s' % (self.config.source_url)
logger.warn('%s' % args)
if self.config.source_driftcomp == True:
args += ' -D'
logger.warn('%s' % args)
if self.config.source_driftcomp == True:
args += ' -D'
logger.warn('%s' % args)

args += ' -b %s -r %s' % (self.config.output_bitrate, self.config.output_samplerate)
if self.config.output_sbr == True:
Expand Down

0 comments on commit 05afd28

Please sign in to comment.