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,7 @@
|
|||
|
||||
|
||||
from .base import IBaseCap, CapBaseObject, Field, StringField
|
||||
from .audiostream import AudioStreamInfo
|
||||
from weboob.tools.capabilities.streaminfo import StreamInfo
|
||||
|
||||
|
||||
__all__ = ['Radio', 'ICapRadio']
|
||||
|
|
@ -32,7 +32,7 @@ class Radio(CapBaseObject):
|
|||
"""
|
||||
title = StringField('Title of radio')
|
||||
description = StringField('Description of radio')
|
||||
current = Field('Current emission', AudioStreamInfo)
|
||||
current = Field('Current emission', StreamInfo)
|
||||
streams = Field('List of streams', list)
|
||||
|
||||
class ICapRadio(IBaseCap):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue