woob.capabilities.audio

class woob.capabilities.audio.BaseAudio(id='', url=NotLoaded, backend=None)

Bases: woob.capabilities.file.BaseFile

Represent an audio file

Variables
  • duration – (timedelta) file duration

  • bitrate – (int, int) file bit rate in Kbps

  • format – (str) file format

  • thumbnail – (Thumbnail) Image associated to the file

classmethod decode_id(_id)
class woob.capabilities.audio.CapAudio

Bases: woob.capabilities.file.CapFile

Audio file provider

get_album(*args, **kwargs)
get_audio(*args, **kwargs)
classmethod get_object_method(_id)
get_playlist(*args, **kwargs)
search_album(pattern, sortby=0)

search for an album :param pattern: pattern to search on :type pattern: str :rtype: iter[Album]

search_audio(pattern, sortby=0)

search for a audio file

Parameters
  • pattern (str) – pattern to search on

  • sortby – sort by …(use SEARCH_* constants)

Return type

iter[BaseAudio]

search_playlist(pattern, sortby=0)

search for an album :param pattern: pattern to search on :type pattern: str :rtype: iter[Playlist]