That is a little bit tricky. Script could 'prioritize' download of subtitles returned by opensubtitles based on number of criteria.
For example if mediainfo returns that file is 720p
, you'd first look for 720p
in subtitle name, if none found, then 1080p
in subtitle name, if none found, then HDTV
in subtitle name etc
I think you get much better chance of getting subtitles right for your video file this way , rather than randomly downloading subtitle file from 20 available for any given title.
Let me know if it makes sense, or am I just talking nonsense?
rednoah42 Wrote:I can get resolution from the video file no problem, but i can't really match that to a subtitle filename. Tbh I've never encountered subtitles called "defendor.1280x720.rg.mkv", some have the ".HD." part, but that's also very rare.
If u can find me lots of example subtitles where that would make sense, i.e. where mediainfo can be matched to the subtitle name, post that here and i'll have a look.