flexget.plugins.output.subtitles_periscope module#
- class flexget.plugins.output.subtitles_periscope.PluginPeriscope[source]#
Bases:
objectSearch and download subtitles using Periscope by Patrick Dessalle (http://code.google.com/p/periscope/).
Example (complete task):
subs: find: path: - d:\media\incoming regexp: '.*\.(avi|mkv|mp4)$' recursive: yes accept_all: yes periscope: languages: - it alternatives: - en overwrite: yes
- on_task_output(task, config)[source]#
Register this as an output plugin.
Configuration:
periscope: languages: List of languages in order of preference (at least one is required). alternatives: List of second-choice languages; subs will be downloaded but entries rejected. overwrite: If yes it will try to download even for videos that are already subbed. Default: no. subexts: List of subtitles file extensions to check (only useful with overwrite=no). Default: srt, stp, sub, stl, ssa.
- schema = {'additionalProperties': False, 'properties': {'alternatives': {'items': {'type': 'string'}, 'type': 'array'}, 'languages': {'items': {'type': 'string'}, 'minItems': 1, 'type': 'array'}, 'overwrite': {'default': False, 'type': 'boolean'}, 'subexts': {'default': ['srt', 'stp', 'sub', 'stl', 'ssa'], 'items': {'type': 'string'}, 'type': 'array'}}, 'type': 'object'}#