woob.capabilities.audio
¶
- class BaseAudio(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseFile
Represent an audio file
- 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 file
- class CapAudio[source]¶
Bases:
CapFile
Audio file provider
- search_album(pattern, sortby=CapFile.SEARCH_RELEVANCE)[source]¶
search for an album :type pattern: :param pattern: pattern to search on :type pattern: str :rtype: iter[
Album
]