woob.capabilities.bands

class woob.capabilities.bands.Albums(name=None, album_type=None, year=None, reviews=None, url=None)

Bases: woob.capabilities.base.BaseObject

Information about one specific band.

Variables
  • name – (str) Album name

  • album_type – (str) Type of album

  • year – (str) Year of release

  • reviews – (str) Album reviews

class woob.capabilities.bands.BandInfo(name=None, year=None, country=None, genre=None, description=None, url=None)

Bases: woob.capabilities.base.BaseObject

Information about one specific band.

Variables
  • name – (str) Name of band

  • genre – (str) Music genre of the band

  • year – (str) Year of creation

  • country – (str) Country of origin

  • description – (str) Description of the band

exception woob.capabilities.bands.BandNotFound

Bases: woob.capabilities.base.UserError

Raised when no band is found.

class woob.capabilities.bands.BandSearch(id='', name=None, short_description=None, url=None)

Bases: woob.capabilities.base.BaseObject

Bands search.

Variables
  • name – (str) Name of band

  • short_description – (str) Short description of the band

class woob.capabilities.bands.CapBands

Bases: woob.capabilities.base.Capability

Capability to get band information on music websites.

get_albums()

Get a band’s discography.

Return type

iter[Albums]

get_favorites()

Get my favorite bands.

Return type

iter[Favorite]

get_info()

Get band info. :param band_id: ID of the band :rtype: BandInfo

Look for a band. :param pattern: pattern to search :type pattern: str :rtype: iter[BandSearch]

suggestions()

Get band suggestions according to your favorite bands.

Return type

iter[Suggestion]

class woob.capabilities.bands.Favorite(id='', name=None, band_url=None, short_description=None)

Bases: woob.capabilities.base.BaseObject

Fetch your favorite bands.

Variables
  • name – (str) Name of favorite band

  • band_url – (str) URL of the favorite band

  • short_description – (str) Short description of the favorite band

class woob.capabilities.bands.Suggestion(id='', name=None, description=None, url=None)

Bases: woob.capabilities.base.BaseObject

Band suggestions based on your favorite bands.

Variables
  • name – (str) Name of suggested band

  • description – (str) Band description

  • url – (str) URL of suggested band