rename AudioStreamInfo into StreamInfo
Allowing future use with upcoming VideoStream Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
d34f8f2e40
commit
e7805cec12
10 changed files with 72 additions and 40 deletions
|
|
@ -20,7 +20,8 @@
|
|||
|
||||
import lxml.etree
|
||||
from weboob.capabilities.radio import ICapRadio, Radio
|
||||
from weboob.capabilities.audiostream import BaseAudioStream, AudioStreamInfo
|
||||
from weboob.capabilities.audiostream import BaseAudioStream
|
||||
from weboob.tools.capabilities.streaminfo import StreamInfo
|
||||
from weboob.capabilities.collection import ICapCollection
|
||||
from weboob.tools.backend import BaseBackend
|
||||
from weboob.tools.browser import StandardBrowser
|
||||
|
|
@ -69,7 +70,7 @@ class SomaFMBackend(BaseBackend, ICapRadio, ICapCollection):
|
|||
radio.description = channel.findtext('description')
|
||||
|
||||
current_data = channel.findtext('lastPlaying')
|
||||
current = AudioStreamInfo(0)
|
||||
current = StreamInfo(0)
|
||||
current.what, current.who = self._parse_current(current_data)
|
||||
radio.current = current
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue