woob.capabilities.subtitle

class woob.capabilities.subtitle.CapSubtitle

Bases: woob.capabilities.base.Capability

Subtitle providers.

get_subtitle(_id)

Get a subtitle object from an ID.

Parameters

_id (str) – ID of subtitle

Return type

Subtitle

get_subtitle_file(_id)

Get the content of the subtitle file.

Parameters

_id (str) – ID of subtitle

Return type

str

iter_subtitles(pattern)

Search subtitles and iterate on results.

Parameters

pattern (str) – pattern to search

Return type

iter[Subtitle]

class woob.capabilities.subtitle.Subtitle(id='', name='', url=None)

Bases: woob.capabilities.base.BaseObject

Subtitle object.

Variables
  • name – (str) Name of subtitle

  • ext – (str) Extension of file

  • nb_cd – (int, int) Number of cd or files

  • language – (str) Language of the subtitle

  • description – (str) Description of corresponding video