Kodi Community Forum

Full Version: srt/sub file detection
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Code:
<visible>substring(ListItem.FilenameAndPath,.srt,Right) | substring(ListItem.FilenameAndPath,.sub,Right)</visible>
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.


EDIT: Never mind, won't work.
What if you try ListItem.Filename ?
my vote goes to: not possible.
Yeah, not sure what I was thinking earlier.
Not possible seems to be the final answer then. Thank you for your input.