streaming: Code review adjustments
This commit is contained in:
parent
7c7db63659
commit
0fac8120d4
@ -20,7 +20,7 @@ class Extension(ext.Extension):
|
||||
schema = super(Extension, self).get_config_schema()
|
||||
schema['protocols'] = config.List()
|
||||
schema['timeout'] = config.Integer(
|
||||
minimum=1000, maximum=1000*60*60)
|
||||
minimum=1000, maximum=1000 * 60 * 60)
|
||||
return schema
|
||||
|
||||
def validate_environment(self):
|
||||
|
||||
@ -39,7 +39,7 @@ class StreamLibraryProvider(base.BaseLibraryProvider):
|
||||
data = self._scanner.scan(uri)
|
||||
track = scan.audio_data_to_track(data)
|
||||
except exceptions.ScannerError as e:
|
||||
logger.warning('Problem looking up %s - %s', uri, e)
|
||||
logger.warning('Problem looking up %s: %s', uri, e)
|
||||
track = Track(uri=uri, name=uri)
|
||||
|
||||
return [track]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user