Solved TV Show root path from episodes level
#1
Hi, I'm unable to get the root path of a TV Show from episodes level, I mean:

TVShow level: value of ListItem.Path - F:/shows/foundation
Seasons level: value of ListItem.Path - F:/shows/foundation
Episodes level: value of ListItem.Path - F:/shows/foundation/season1 (or whatever)

I would like to get somehow the root path value (F:/shows/foundation) even from the episodes level, but I've tried all infolabels, and none returned that info, is there any way to get that? Thanks!
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply
#2
ListItem.TVShowDBID will give you the id of the tv show for the episode.

Then you can build the path:

videodb://tvshows/titles/$INFO[ListItem.TVShowDBID]/

Assuming you want the filename and not the library path, then if you use the above as a content path for a hidden list (e.g. id="999"), you could then use whatever infolabels to get the path e.g. $INFO[Container(999).ListItem.FileName - I think that would give you what you want.
Reply
#3
It works as you said, thanks!
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply
#4
(2024-05-06, 13:53)manfeed Wrote: It works as you said, thanks!

That's great, no problem!
Reply
#5
Thread marked solved.
Reply

Logout Mark Read Team Forum Stats Members Help
TV Show root path from episodes level0