Where

Hi,

 

I wrote a little crawler that scans my preferred P2P site, checks (according to keywords) if a show is available and downloads it.

But before downloading I would like to check if that episode already exists in my PMS library.

 

So I thought I would find the information in the XML response given by querying "localhost:32400/library/metadata/5442/allLeaves" (note : 5442 is the id of the show) but no season/episode information here...

 

Any idea where it might be ?

 

Thanks.

M.

 

 

 

Not sure, if this is the right information - but sure it looks like:

You got to start earlier... when selecting the actual show you get a menu like

 - All episodes

 - Season 4

 - Season 5

or in XML (cleaned up for easier reading):

<Directory [...] title="All episodes"/>
<Directory [...] type="season" title="Season 4" [...] index="4" [...]>
<Directory [...] type="season" title="Season 5" [...] index="5" [...]>
Look at the index-tag an remember the content - this should be your Season ID.
 
Diving into one of the seasons you get something like...
 -
 -
 - ...
again in XML:
<Video [...] title="" [...] index="1" [...]>
<Media id="..." [...]>
<Part id="..." [...]/>
[...]
<Video [...] title="" [...] index="2" [...]>
<Media id="..." [...]>
<Part id="..." [...]/>
[...]
[...]
Again, search for the index-tag an remember the content - this should be your Episode ID.
 
Please check this data against some of your shows, it seems to fit in my library. I just cannot guarantee it's the same on your side :-)

Thanks for your reply Baa.

I searched the higher branches in the library tree but could not get any XML output with :

<Directory [...] title="All episodes"/>
<Directory [...] type="season" title="Season 4" [...] index="4" [...]>
<Directory [...] type="season" title="Season 5" [...] index="5" [...]>
 

What url do you query to get this ?

In my example: starting at...

http://127.0.0.1:32400

climb down the "key"s:

/library/sections/2/all

from there you will be kind of redirected with key=

/library/metadata/37/children

to the view like described. For sure the "2", "37", "children" are only keywords valid in my database - they would different on you machine. Also, the Season/Episode view only comes up when using a TVShow scanner, a Movie has different metadata.

Thank you so much Baa.

I must have been blind !!! :-)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.