Open alvise opened 9 years ago
The plugin recognizes the version by some keywords inside the filename like "720p", "1080p", "web-dl" and it tries to download that kind of sub if present otherwise it gets the normal version as default.
Currently, you can't download all versions and I think it will not be possible due to the subs management of Plex.
Thank you for the answer. I kind of resolved my problem, its not very elegant (i don't know any python) but i added this code at the end of init.py
# try:
# heightVideo
# except:
# heightVideo = 0
##REGULAR##
subtitle = search_subtitle(name, filename, season, episode, tvdb_id)
if subtitle:
subtitle_url, subtitle_contents = subtitle
Log.Debug('[ {} ] Subtitle for {} s{}e{} ({}) - Regular - downloaded and installed successfully! :)'.format(PLUGIN_NAME,name, season, episode, basename(filename)))
part.subtitles['it'][subtitle_url] = Proxy.Media(subtitle_contents, ext='srt')
else:
Log.Debug('[ {} ] Subtitle for {} s{}e{} ({}) - Regular - NOT available, sorry! :('.format(PLUGIN_NAME,name, season, episode, basename(filename)))
##720P##
subtitle = search_subtitle(name, filename+'720p', season, episode, tvdb_id)
if subtitle:
subtitle_url, subtitle_contents = subtitle
Log.Debug('[ {} ] Subtitle for {} s{}e{} ({}) - 720p - downloaded and installed successfully! :)'.format(PLUGIN_NAME,name, season, episode, basename(filename)))
part.subtitles['it'][subtitle_url] = Proxy.Media(subtitle_contents, ext='srt')
else:
Log.Debug('[ {} ] Subtitle for {} s{}e{} ({}) - 720p - NOT available, sorry! :('.format(PLUGIN_NAME,name, season, episode, basename(filename)))
##web-dl##
subtitle = search_subtitle(name, filename+'web-dl', season, episode, tvdb_id)
if subtitle:
subtitle_url, subtitle_contents = subtitle
Log.Debug('[ {} ] Subtitle for {} s{}e{} ({}) - web-dl - downloaded and installed successfully! :)'.format(PLUGIN_NAME,name, season, episode, basename(filename)))
part.subtitles['it'][subtitle_url] = Proxy.Media(subtitle_contents, ext='srt')
else:
Log.Debug('[ {} ] Subtitle for {} s{}e{} ({}) - web-dl - NOT available, sorry! :('.format(PLUGIN_NAME,name, season, episode, basename(filename)))
Now i get all 3 subs downloaded in plex, they are all named just "Italian" but i can cycle easily trough them in plex.
Hi i find several subs out of sync, can i download all version of subs from itasa? (WEB-DL, 720p and regular?)
Witch sub does this agent download by default?