SUBs subfolder in a one movie per folder layout
#1
I recently noticed that Kodi does not support recognizing subtitle files in a folder named "SUBs" under the main movie folder.

i.e.

\\server\movies\mymovie\file.mkv
\\server\movies\mymovie\SUBs\file.srt

Rather than reorganize everything is it possible to teach Kodi to handle this?
Having problems getting your TV shows recognized?

Try my extra TV show matching REGEX here
Reply
#2
code is probably case sensitive. try 'subs'.
Reply
#3
Thanks for this. I assumed it didnt work at all but after reading your suggestion it seems like it works under windows but not under OpenELEC. Could explain why it took me so long to spot.

Edit: it is definitely a case sensitivity thing. thanks
Having problems getting your TV shows recognized?

Try my extra TV show matching REGEX here
Reply
#4
With some help the relevant code has been found in:

https://github.com/xbmc/xbmc/blob/master/xbmc/Util.cpp

Code:
// new array for commons sub dirs
const char * common_sub_dirs[] = {"subs",
"Subs",
"subtitles",
"Subtitles",
"vobsubs",
"Vobsubs",
"sub",
"Sub",
"vobsub",
"Vobsub",
"subtitle",
"Subtitle",
NULL};

Is there any mileage in requesting this be made case insensitive to be more platform agnostic or altered to REGEX. Failing that given this part of the code is so old should I just request the addition of "SUBs"?
Having problems getting your TV shows recognized?

Try my extra TV show matching REGEX here
Reply

Logout Mark Read Team Forum Stats Members Help
SUBs subfolder in a one movie per folder layout0