Log Parsing

Purely as a programming exercise I’m writing something in VB to parse the Plex Media Server logs to find what’s been watched or viewed since the last time it updated.

While I can sort of get the names of videos that have been played (kind of) I can’t for the life of me find where to see what images have been viewed.

For the videos I’m scraping ‘Plex Media Server.log’ (and since it’s hosted on a Synology NAS that file is under \{server}\PlexMediaServer\AppData\Plex Media Server\Logs)

Where should I be looking for the images? So, for instance, I’d earlier viewed an image library of chilli peppers I should be able to see that I pulled up ‘Trinidad Scorp 3.jpg’

It’s no big deal if this can’t (easily) be done - as I say, it’s mostly just for fun.

Many thanks.

In the log, you should be able to find lines like:
GET /photo/:/transcode?width=360&height=360&minSize=1&upscale=1&url=%2Flibrary%2Fmetadata%2F19672%2Fthumb%2F1731546069%3FX-Plex-Token%3Dxxxxxxxxxxxxxxxxxxxx

In above, 19672 is the ID of the artist, and 1731546069 the id of the image

So with that in mind, you can from your code browse to https://<IP_OF_PMS>:32400/library/metadata/19672/ and see all metadata about the artist

If you wanna see the picture, the url would be: https://<IP_OF_PMS>:32400/library/metadata/19672/thumb/1731546069

Nice!

Thank you very much!

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