weboob.capabilities.audio

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

Bases: weboob.capabilities.file.BaseFile

Represent an audio file
Variables:
  • duration – (timedelta) file duration
  • bitrate – (int, long) file bit rate in Kbps
  • format – (unicode) file format
  • thumbnail – (Thumbnail) Image associated to the file
classmethod decode_id(_id)
class weboob.capabilities.audio.CapAudio

Bases: weboob.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]