jansmolders86 / mediacenterjs

A HTML/CSS/Javascript (NodeJS) based Media center
http://mediacenterjs.com
1.29k stars 243 forks source link

Subtitles with . and/or language code in the filename are detected #200

Closed matita closed 9 years ago

matita commented 9 years ago

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)

jansmolders86 commented 9 years ago

Superb! Thanks again!

matita commented 9 years ago

One is glad to be of service