Hi all,
I’m trying to figure out an easy way to link Plex into a system I’ve developed that manages my media for me (in conjunction with Plex Media Server). What I’m trying to do is get the key Plex uses for, let’s say, a TV episode and store that in the database for my system. I can then query the web API and show what episodes have been watched and remain to be watched in my system.
Is there any way to get something like this:
/library/metadata/3194
back from Plex given a filename:
/HDD/TV Shows/House/House - S01E01.mkv
At the moment I have to link each show together using a string comparison, then each episode by season number and episode number separately, via the web API, which is a right pain.
Thanks if you can help!
you could do a match on the file attribute of the Part tag. it isa urlencode of the file location.
you could do this in the /allLeaves branch of the show tree ( and then watch your flowers bloom
)
It’s easiest if you do use the xml that pms can provide. Check out what I did at http://forums.plexapp.com/index.php/topic/23932-control-plex-using-speech-recognition/ for an example on how to use the xml.
What you want to to is parse the xml to find an element with the specific path and filename and get the corresponding key form that that element.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.