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
|
|
@ -19,7 +19,8 @@
|
|||
|
||||
from weboob.tools.browser import BasePage
|
||||
from weboob.capabilities.radio import Radio
|
||||
from weboob.capabilities.audiostream import BaseAudioStream, AudioStreamInfo
|
||||
from weboob.capabilities.audiostream import BaseAudioStream
|
||||
from weboob.tools.capabilities.streaminfo import StreamInfo
|
||||
|
||||
__all__ = ['LivePage', 'ProgramPage']
|
||||
|
||||
|
|
@ -52,7 +53,7 @@ class LivePage(BasePage):
|
|||
|
||||
class ProgramPage(BasePage):
|
||||
def get_current_emission(self):
|
||||
current = AudioStreamInfo(0)
|
||||
current = StreamInfo(0)
|
||||
two_or_more = unicode(self.document.xpath('//p')[0].text).split('/////')[0].split(' - ')
|
||||
# Consider that if String(' - ') appears it'll be in title rather in the artist name
|
||||
if len(two_or_more) > 2:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue