Open nerijus opened 6 years ago
OpenSubtitles plugin is broken. Working on it during the weekend.
I'm currently cleaning the code from upstream (periscope-gnome). Code was little messy: lots trailing spaces everywhere, too long lines, unused modules, undefined variable, etc. For the time being, I suggest to edit ~/.config/periscopio/config and enable only the other plugins. This is, put all the ones that are useful for you and exclude OpenSubtitles.
SubtitleDatabase is a parser for the rest of the plugins.
The ones tha work Ok are:
Could you please add to the default config file all the plugins, so that people could disable unneeded ones easily, just by commenting them out or removing them from the list?
Or to make something like that work - use minus to disable plugin, for example: plugins = -LegendasTV -SubDivX
OpenSubtitles plugin is still broken.
If I add plugins = -OpenSubtitles to config, I get
Traceback (most recent call last):
File "/usr/bin/periscopio", line 136, in <module>
main()
File "/usr/bin/periscopio", line 100, in main
sub = periscopio_client.downloadSubtitle(arg, langs)
File "/usr/lib/python2.7/site-packages/periscopio/periscopio.py", line 210, in downloadSubtitle
subtitles = self.listSubtitles(filename, langs)
File "/usr/lib/python2.7/site-packages/periscopio/periscopio.py", line 154, in listSubtitles
plugin = getattr(plugins, name)(self.config, self.cache_path)
AttributeError: 'module' object has no attribute '-OpenSubtitles'
When running from the command line: