Latest Server Update 1.28.1.6041 Question

Server Version#: 1.28.1.6041
Player Version#: NA

I’m just wondering what exactly this means, and how this will affect anyone using external scripts which use the CLI.

(Scanner) Mark ‘scan’ and ‘refresh’ CLI actions as deprecated (#13700)

Would need to use URL commands instead

Is there a deep scan option via the url partial scan option like there was via the cli scanner ?

do you mean deep analysis? afaik that should still work. Not sure what a deep scan is.

Yes sorry the --analyze-deeply via the url api endpoint? Is that possible ? Are there any docs related to the api anywhere ?

afaik you can use this butler task URL with POST but it can’t be toward a specific folder or media item

<PMS_IP>:32400/butler/DeepMediaAnalysis

API docs afaik have been on the backburner for a while. I’ll poke folks about it but don’t hold your breath

Is the scanner the only way currently to target specific media items? Since the scanner is being deprecated slowly will there be another option outside of the schedule task?

1 Like

Does this trigger a scan for all items missing the deep analysis?

@EnorMOZ CLI deep analysis still works (I think)

The only actions getting deprecated here are library scan and refreshes, other operations will continue to work as normal at this time.

1 Like

I currently have this set up between my Plex and fileserver… If I update will this break?

It uses curl to make POST requests for file scanning

curl --request POST \
  --url 'http://localhost:3030/triggers/manual?dir=%2Ftest%2Fone&dir=%2Ftest%2Ftwo' \
  --header 'Authorization: Basic aGVsbG8gdGhlcmU6Z2VuZXJhbCBrZW5vYmk='

This is currently the only way I can get partial library scans to work properly or full library scans are always triggered (remote filesystem). This uses inotify to trigger autoscan on my fileserver to let the autoscan on my Plex server know of inotify changes and to send the appropriate request to Plex via POST. This works for specifying files so only that directory is scanned.

I don’t believe it uses the Plex CLI at all, but I don’t want to update and have my setup come crumbling down.

It would only affect the old python version since that uses the CLI.

I updated a few days ago and found it was working fine yes. It’s still a bit unfortunate in terms of running deep analysis. I only ever run it manually on my 4k media and only typically need to run it against one file. Just means until they implement a manual way of deeply analyzing a single file again I’ll have to wait until maintenance has run before trying to watch larger remuxes lol. That’s the only thing I used the CLI for.

There’s a 3rd. Party tool not related to Plex that might help you kick off the scheduled butler task if needed

1 Like

I remember using WebTools back in the day, but haven’t in a while so I’ll check it out.
From looking at the Github page though, it appears to just initiate the butler task, which is all well and good for kicking it off willy nilly as opposed to waiting, but doesn’t help with targeting a specific file which is what I want and will be lost with the depreciated commands.

I’m perfectly fine with Butler tasks doing their thing for whole libraries when the time comes during off-hours, but when I want to watch a new file I’ve remuxed - I’d like to ensure it plays properly the first time (deeply analyze it first).

As it stands now from my understanding, even if I were to run deep analysis from WebTools, I imagine it’ll either just do a full library, the entire server or maybe it’s smart enough to see what hasn’t been analyzed already, but even then there could be a few things that haven’t been analyzed yet including the file I actually want - meaning I play the waiting game until it’s done which could be hours as opposed to 5-10min.
Running deep analysis during peak hours for my server for long periods of time also isn’t ideal due to additional strain it causes.

1 Like

WebTools simply kick off the Butler task, and it’s in that the logic lives, and yes, server wise, but with logic to detect what already has been processed

Are there any plan to implement deep analysis on a specific file via api any time soon?

1 Like

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