Monitoring added media

Hi,

 

I was wondering if there is a way to know when a new content is ready in PMS ?

 

I mean when a new media has been indexed and proper metadata has been retrieved and associated. So far I tried to periodically scan the XML library to detect when media is added. That's fine but it can take a while between the moment the media is added and the moment the metadata is fetched and checking the 'updatedAt' field is tricky : it seems PMS can go through several 'updates', first placing temporary data (a frame from the movie for the thumb that will later be replaced with the appropriate artwork)...

So any ideas ? How to check that all is good and fine for a newly added media ?

 

Thx.

m.

i add media through other applications, those are able to notify when for example a download is complete. Maybe such a thing would provide a solution?

i add media through other applications, those are able to notify when for example a download is complete. Maybe such a thing would provide a solution?

Thank you for comment.

Same as you. I download with Transmission. I use the daemon version on my headless linux server. Works like a charm. It notifies me when a download is complete but as I said : it can take a while for PMS to start fetching metadata. Even when 'Scan on file change' setting is checked, the process of scanning takes time : metadata plugin agents are called, they crawl sites for information, respond with what they found...

Not a clue here, but an idea.....You could create a dummy meta-data agent, that's last in the chain, and that notifies you as it's only action. or ?

Not a clue here, but an idea.....You could create a dummy meta-data agent, that's last in the chain, and that notifies you as it's only action. or ?

Yep. I also came to the conclusion that this would be the best way to do.

So I am reading the API docs and learning Python... maybe I come up with a plugin that does the trick... wait and see ;-)

Thanx.

Hi,

I was wondering if there is a way to know when a new content is ready in PMS ?

I mean when a new media has been indexed and proper metadata has been retrieved and associated. So far I tried to periodically scan the XML library to detect when media is added. That's fine but it can take a while between the moment the media is added and the moment the metadata is fetched and checking the 'updatedAt' field is tricky : it seems PMS can go through several 'updates', first placing temporary data (a frame from the movie for the thumb that will later be replaced with the appropriate artwork)...

So any ideas ? How to check that all is good and fine for a newly added media ?

Thx.

m.

Have a look....... I know this is a link to the windows version, but they have a build for each......

https://forums.plexapp.com/index.php/topic/79616-plexwatch-windows-branch/

I use it and it is quite nice....

Sends you info via GNTP, Boxcar, Pushover, Growl, email whichever you choose or have.....

Hope this helps...........

I´m using PlexWatch and I have it send notifications via Pushover to my Android devices. Although having "plexwatch.exe --recently_added" run every minute has been causing me some issues so I had to make the interval longer between notifications.

I´m using PlexWatch and I have it send notifications via Pushover to my Android devices. Although having "plexwatch.exe --recently_added" run every minute has been causing me some issues so I had to make the interval longer between notifications.

I believe and I could be wrong(Ask my wife) but they suggest that you put recently added to 4-5 minute interval for polling that info.

What did you extend it to? Just asking....

I believe and I could be wrong(Ask my wife) but they suggest that you put recently added to 4-5 minute interval for polling that info.

What did you extend it to? Just asking....

I've extended it to 10 minutes, but still getting various errors, although not the "locked" one. Still trying to pinpoint the issue.

I've extended it to 10 minutes, but still getting various errors, although not the "locked" one. Still trying to pinpoint the issue.

Nice ill try that.....

 Thank you Anti-trust!

Thank you for suggesting PlexWatch... maybe I give it a try, but I as I can read the 'recently added' notification feature (the one I need) works only for PlexPass members :-(

Finally found a solution...

I am monitoring the table 'metadata_items'

When a new item is added I start a "survey" of its information until the record gets fresh data from metadata agents : the field 'user_thumb_url' changes from 'media://....' to 'metadata://....'

My log file looks like this :

28 15:06:41 - checkAddedItems = 2013-12-28 15:06:38
28 15:06:41 - getIdsToCheck = 
28 15:06:44 - checkAddedItems = 2013-12-28 15:06:41
28 15:06:45 - checkAddedItems = 13743|The Dancer in the Dark M|||||||||||2013-12-28 15:06:36|2013-12-28 15:06:44|||4edea1fe8a8a8a4e003bb56514af69049d694d81|
28 15:06:45 - getIdsToCheck = 13743
28 15:06:48 - checkAddedItems = 2013-12-28 15:06:44
28 15:06:48 - checkAddedItems = 13743|The Dancer in the Dark M||||media://d/816841a16c58f98a6b5d261f2af24915c8b1de0.bundle/Contents/Thumbnails/thumb1.jpg|media://d/816841a16c58f98a6b5d261f2af24915c8b1de0.bundle/Contents/Art/art1.jpg||||||2013-12-28 15:06:36|2013-12-28 15:06:44|||4edea1fe8a8a8a4e003bb56514af69049d694d81|
28 15:06:48 - getIdsToCheck = 13743
28 15:06:51 - checkAddedItems = 2013-12-28 15:06:48
28 15:06:51 - getIdsToCheck = 13743
28 15:06:54 - checkAddedItems = 2013-12-28 15:06:51
28 15:06:54 - getIdsToCheck = 13743
28 15:06:57 - checkAddedItems = 2013-12-28 15:06:54
28 15:06:57 - getIdsToCheck = 13743
28 15:07:00 - checkAddedItems = 2013-12-28 15:06:57
28 15:07:00 - getIdsToCheck = 13743
28 15:07:03 - checkAddedItems = 2013-12-28 15:07:00
28 15:07:03 - getIdsToCheck = 13743
28 15:07:06 - checkAddedItems = 2013-12-28 15:07:03
28 15:07:06 - getIdsToCheck = 13743
28 15:07:09 - checkAddedItems = 2013-12-28 15:07:06
28 15:07:09 - getIdsToCheck = 13743
28 15:07:12 - checkAddedItems = 2013-12-28 15:07:09
28 15:07:12 - getIdsToCheck = 13743
28 15:07:15 - checkAddedItems = 2013-12-28 15:07:12
28 15:07:15 - getIdsToCheck = 13743
28 15:07:18 - checkAddedItems = 2013-12-28 15:07:15
28 15:07:18 - getIdsToCheck = 13743
28 15:07:21 - checkAddedItems = 2013-12-28 15:07:18
28 15:07:21 - getIdsToCheck = 13743
28 15:07:24 - checkAddedItems = 2013-12-28 15:07:21
28 15:07:24 - getIdsToCheck = 13743
28 15:07:27 - checkAddedItems = 2013-12-28 15:07:24
28 15:07:27 - getIdsToCheck = 13743
28 15:07:30 - checkAddedItems = 2013-12-28 15:07:27
28 15:07:30 - getIdsToCheck = 13743
28 15:07:33 - checkAddedItems = 2013-12-28 15:07:30
28 15:07:33 - getIdsToCheck = 13743
28 15:07:33 - getTaggedItems = 13743|Dancer in the Dark|7.5|Selma Jezkova, emigrée tchèque et mère célibataire, travaille dans une usine de l'Amérique profonde. Elle trouve son salut dans sa passion pour la musique, spécialement les chansons et les danses des grandes comédies musicales hollywoodiennes. Selma garde un lourd secret : elle perd la vue et son fils Gene connaîtra le même sort sauf si elle réussit à mettre assez d'argent de côté pour lui payer une opération. Quand un voisin aux abois accuse a tort Selma d'avoir volé ses économies, le drame de sa vie s'intensifie pour se terminer en final tragique.||metadata://posters/com.plexapp.agents.themoviedb_c43a6537f96395a27771df19698dd285ed4a9d6d|metadata://art/com.plexapp.agents.themoviedb_97d1389366ce1d2bd6b4c6a3e4b89152cf620a7e|Crime|Drame|Lars von Trier|Lars von Trier|Björk|Catherine Deneuve|David Morse|2000|2013-12-28 15:06:36|2013-12-28 15:06:44|2013-12-28 15:07:33|2013-12-28 15:07:33|bcfaa18e6df66a51c4a9732065c587449a6dffc6|
28 15:07:36 - checkAddedItems = 2013-12-28 15:07:33
28 15:07:36 - getIdsToCheck = 
28 15:07:39 - checkAddedItems = 2013-12-28 15:07:36
28 15:07:39 - getIdsToCheck = 
 
 
 
 
 

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