Pep8 audioaddict
This commit is contained in:
parent
d23d9672c6
commit
242aa15089
1 changed files with 44 additions and 45 deletions
|
|
@ -28,6 +28,7 @@ import time
|
|||
|
||||
__all__ = ['AudioAddictBackend']
|
||||
|
||||
|
||||
#
|
||||
# WARNING
|
||||
#
|
||||
|
|
@ -36,7 +37,6 @@ __all__ = ['AudioAddictBackend']
|
|||
# option to another player in the ~/.config/weboob/radioob config file:
|
||||
# [ROOT]
|
||||
# media_player = your_non_mplayer_player
|
||||
|
||||
class AudioAddictBackend(BaseBackend, ICapRadio, ICapCollection):
|
||||
NAME = 'audioaddict'
|
||||
MAINTAINER = u'Pierre Mazière'
|
||||
|
|
@ -115,7 +115,7 @@ class AudioAddictBackend(BaseBackend, ICapRadio, ICapCollection):
|
|||
}
|
||||
|
||||
CONFIG = BackendConfig(Value('networks',
|
||||
label='Selected Networks [%s](space separated)'%\
|
||||
label='Selected Networks [%s](space separated)' %
|
||||
' '.join(NETWORKS.keys()), default=''),
|
||||
Value('quality', label='Radio streaming quality',
|
||||
choices={'h': 'high', 'l': 'low'},
|
||||
|
|
@ -160,7 +160,7 @@ class AudioAddictBackend(BaseBackend, ICapRadio, ICapCollection):
|
|||
if not self.RADIOS:
|
||||
self.RADIOS = {}
|
||||
if not selectedNetwork in self.RADIOS:
|
||||
document = self.browser.location('http://listen.%s/%s'%\
|
||||
document = self.browser.location('http://listen.%s/%s' %
|
||||
(self.NETWORKS[selectedNetwork]['domain'],
|
||||
streamName))
|
||||
self.RADIOS[selectedNetwork] = {}
|
||||
|
|
@ -273,4 +273,3 @@ class AudioAddictBackend(BaseBackend, ICapRadio, ICapCollection):
|
|||
return radio
|
||||
|
||||
OBJECTS = {Radio: fill_radio}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue