So far subtitles files named like my.movie.file.srt were not found because the subtitleUrl.split('.')[0] part would search for my.srt.
Using path features the file selection is safer.
Also, subtitle files with language code (or other strings) in it are detected (XBMC by default downloads subtitles with pattern movie file name.{langCode}.srt)
So far subtitles files named like
my.movie.file.srt
were not found because thesubtitleUrl.split('.')[0]
part would search formy.srt
. Usingpath
features the file selection is safer. Also, subtitle files with language code (or other strings) in it are detected (XBMC by default downloads subtitles with patternmovie file name.{langCode}.srt
)