srt/sub file detection - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: srt/sub file detection (/showthread.php?tid=128553) |
srt/sub file detection - macardi - 2012-04-11 Hi, I would like to have a flag in the library indicating if subtitles exists for my movies and episodes. So i wonder if it would be possible to somehow detect if a video file has a corresponding subtitle file (srt or sub) for a specific movie/episode? Marcus RE: srt/sub file detection - Hitcher - 2012-04-11 Code: <visible>substring(ListItem.FilenameAndPath,.srt,Right) | substring(ListItem.FilenameAndPath,.sub,Right)</visible> RE: srt/sub file detection - macardi - 2012-04-11 Thanks Hitcher for your reply! It doesn't seems work unfortunately, "ListItem.FilenameAndPath" returns the file name of the selected video file with the extension (mkv, avi etc.). A present srt or sub file doesn't seems to be detected by this command. RE: srt/sub file detection - pecinko - 2012-04-11 EDIT: Never mind, won't work. RE: srt/sub file detection - butchabay - 2012-04-11 What if you try ListItem.Filename ? RE: srt/sub file detection - ronie - 2012-04-11 my vote goes to: not possible. RE: srt/sub file detection - Hitcher - 2012-04-11 Yeah, not sure what I was thinking earlier. RE: srt/sub file detection - macardi - 2012-04-12 Not possible seems to be the final answer then. Thank you for your input. |