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
srt/sub file detection
macardi
Senior Member Posts: 145 Joined: Sep 2008 Reputation: 0 Location: Sweden |
2012-04-11 17:49
Post: #1
(This post was last modified: 2012-04-11 17:50 by macardi.)
|
| find quote |
Hitcher
Skilled Skinner Joined: Aug 2007 Reputation: 67 Location: Eastleigh, UK |
2012-04-11 19:11
Post: #2
Code: <visible>substring(ListItem.FilenameAndPath,.srt,Right) | substring(ListItem.FilenameAndPath,.sub,Right)</visible>![]() |
| find quote |
macardi
Senior Member Posts: 145 Joined: Sep 2008 Reputation: 0 Location: Sweden |
2012-04-11 19:55
Post: #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. |
| find quote |
pecinko
Member+ Joined: Dec 2008 Reputation: 27 Location: Prague / Belgrade |
2012-04-11 19:58
Post: #4
EDIT: Never mind, won't work.
(This post was last modified: 2012-04-11 20:03 by pecinko.)
|
| find quote |
butchabay
Skilled Skinner Joined: Mar 2010 Reputation: 62 Location: Switzerland |
2012-04-11 21:30
Post: #5
What if you try ListItem.Filename ?
|
| find quote |
ronie
Team-XBMC Member Joined: Jan 2009 Reputation: 108 |
2012-04-11 23:10
Post: #6
my vote goes to: not possible.
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |
Hitcher
Skilled Skinner Joined: Aug 2007 Reputation: 67 Location: Eastleigh, UK |
2012-04-11 23:28
Post: #7
Yeah, not sure what I was thinking earlier.
![]() |
| find quote |
macardi
Senior Member Posts: 145 Joined: Sep 2008 Reputation: 0 Location: Sweden |
2012-04-12 12:26
Post: #8
Not possible seems to be the final answer then. Thank you for your input.
|
| find quote |


![[Image: sig_zps3af3b48e.jpg]](http://i620.photobucket.com/albums/tt289/Arcanthur/Celestium/sig_zps3af3b48e.jpg)
Search
Help