Posts: 182
Joined: Sep 2016
Reputation:
16
SEIKT
Senior Member
Posts: 182
My English subtitles for the movie: No Time to Die (2020) are being registered as Norwegian subs. The filename of the subtitles is: No Time to Die (2020) English.srt
The cause of this is clear. The language code for Norwegian is "no" and "No" is at the start of the string of the movie title.
The only solution to this issue I have found is storing the movie and subtitles in their own folder and naming the subtitles as: English.srt
Posts: 182
Joined: Sep 2016
Reputation:
16
SEIKT
Senior Member
Posts: 182
Should mention I am passing the subtitles path to a listitem via the setSubtitles method.
Here is the relevant info from the log. I tried the naming convention as you suggested Karellen, the issue persists.
2021-12-03 15:23:36.802 T:14324 DEBUG <general>: CUtil::GetExternalStreamDetailsFromFilename - Language = 'nor' / Name = 'Time to Die (2021) English (External)' / Flag = '0' from C:\Users\Jay\Documents\strm\movies\No Time to Die (2021) English.srt
Posts: 182
Joined: Sep 2016
Reputation:
16
SEIKT
Senior Member
Posts: 182
Here is another example of English Back the Future Part III subs being registered as Tongan. Seems to be because "to" is in the title - "to" is being extracted from the title.
2021-12-03 15:53:17.703 T:15444 DEBUG <general>: CUtil::GetExternalStreamDetailsFromFilename - Language = 'ton' / Name = 'Back the Future Part III (1990) eng (External)' / Flag = '0' from C:\Users\Jay\Documents\strm\movies\Back to the Future Part III (1990).eng.srt
Posts: 10,678
Joined: Oct 2011
Reputation:
657
jjd-uk
Team-Kodi Member
Posts: 10,678
Going by that log you have strm files that point to your movie files which are stored on Google drive, I assume that's what's happening as the gdrive addon seems to be called. Is behaviour any different if you have both the movie file and subtitle file locally in the same folder so the use of strm's & Google drive is eliminated?
Posts: 2,474
Joined: Sep 2006
Reputation:
338
Maybe the Kodi code just needs to scan the filename backwards when looking for language as set subtitle wouldn't know the movie name to remove from the subtitle name.b