woob.capabilities.radio

class Radio(id='', url=NotLoaded, backend=None)[source]

Bases: BaseObject

Radio object.

Variables:
  • url – (str) url

  • title – (str) Title of radio

  • description – (str) Description of radio

  • current – (StreamInfo) Current emission

  • streams – (list) List of streams

class CapRadio[source]

Bases: Capability

Capability of radio websites.

Search a radio.

Parameters:

pattern (str) – pattern to search

Return type:

iter[Radio]

get_radio(id)[source]

Get a radio from an ID.

Parameters:

id (str) – ID of radio

Return type:

Radio