srt/sub file detection
#1
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
Reply
#2
Code:
<visible>substring(ListItem.FilenameAndPath,.srt,Right) | substring(ListItem.FilenameAndPath,.sub,Right)</visible>
Reply
#3
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.


Reply
#4
EDIT: Never mind, won't work.
My skins:

Amber
Quartz

Reply
#5
What if you try ListItem.Filename ?
Reply
#6
my vote goes to: not possible.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#7
Yeah, not sure what I was thinking earlier.
Reply
#8
Not possible seems to be the final answer then. Thank you for your input.
Reply

Logout Mark Read Team Forum Stats Members Help
srt/sub file detection0