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:
Pierre Mazière 2014-01-02 18:26:34 +01:00
commit e7805cec12
10 changed files with 72 additions and 40 deletions

View file

@ -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', 'StreamsPage']
@ -51,7 +52,7 @@ class StreamsPage(BasePage):
class LivePage(BasePage):
def get_current_emission(self):
current = AudioStreamInfo(0)
current = StreamInfo(0)
current.who = unicode(self.document.xpath('//playlist/now/entry/artist')[0].text)
current.what = unicode(self.document.xpath('//playlist/now/entry/song')[0].text)
return current