woob.capabilities.audiostream¶
- class BaseAudioStream(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseAudioAudio stream object
- Variables:
url – (
str) urltitle – (
str) File titleext – (
str) File extensionmime_type – (
str) MIME Typeauthor – (
str) File authordescription – (
str) File descriptiondate – (
date,datetime) File publication datelast_update – (
date,datetime) Last update or last modified date (default: Not available)size – (
int) File size in bytes (default: Not available)rating_max – (
int,float) Maximum rating (default: Not available)license – (
str) License nameduration – (
timedelta) file durationbitrate – (
int) file bit rate in Kbpsformat – (
str) file formatthumbnail – (
Thumbnail) Image associated to the filecurrent – (
StreamInfo) Information related to current broadcast
- class CapAudioStream[source]¶
Bases:
CapAudioAudio streams provider
- search_audiostreams(pattern, sortby=CapFile.SEARCH_RELEVANCE)[source]¶
Search an audio stream
- Parameters:
pattern (str) – pattern to search
sortby – sort by … (use SEARCH_* constants) (default:
CapFile.SEARCH_RELEVANCE)
- Return type:
iter[
BaseAudioStream]