Kodi Community Forum

Full Version: SUBs subfolder in a one movie per folder layout
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
code is probably case sensitive. try 'subs'.
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
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"?