Solved how to get TV Show's path? / Flag for TV Show
#1
Hi All,

I've tried - I think - everything (searched with google, spent a couple of hours with xbmc's scripts) to get succeed with this problem, but ended with no luck.
I have tv shows in my language and in english with subs. All in their corresponding main folder. (Series-HUN / Series-Subtitled)

What I would like to achieve is that: show a specific (subtitles) logo/flag for a tv show, on a TV Show Level (so without seeing the episodes).
My problem is that I'm unable to get the TVShow's main folder path. If I press "i" to see the info, I see the path, and it shows the main folder. It's great, but If I just see the TV Shows, I see the plot, the series name, but the path is empty, it shows nothing.

My code right now looks like this:
Code:
                    <control type="image">
                        <width>50</width>
                        <height>21</height>
                        <texture>osd/subtitled_50x21px_NF.png</texture>
                        <visible>substring(ListItem.FilenameAndPath,Subtitled)</visible>
                    </control>

It's on a NAS, and with movies (this subtitled thing) it's working great.
If it's not possible, then could anyone advise me a method to achieve my goal?
I mean: put a subtitled.png in all of the TV Show's folder (which are subtitled), and show them with a substring trick.

thank you very much for your help:
eM
Reply
#2
Since tv shows have no filename, you need to use ListItem.Path instead of ListItem.FilenameAndPath.
Image
Reply
#3
Thank you. Tried it and it works!
I didn't knew that's so simple. Now I know!
Reply

Logout Mark Read Team Forum Stats Members Help
how to get TV Show's path? / Flag for TV Show0