Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify Plex to reanalyze a file? #105

Closed
ponchohoncho opened this issue Mar 18, 2021 · 5 comments
Closed

Notify Plex to reanalyze a file? #105

ponchohoncho opened this issue Mar 18, 2021 · 5 comments
Labels
feature A new feature! :D wontfix This will not be worked on

Comments

@ponchohoncho
Copy link

Is it possible to get Plex to reanalyze a file?

I use Tdarr to create Stereo AAC streams from 5.1 audio tracks, which keeps transcodes nice and light on my server.

Tdarr copies a file to a cache location, does its transcoding, then copies the file back to where it came from. The problem is that Plex doesn't know about these new audio tracks, so playback fails because the expected media components are all out of order. I've found that having autoscan notify Plex about the file isn't enough to get it to notice the new audio tracks and I have to manually Analyze the files that Tdarr touches.

This is what happens in Plex during Analyzing: https://support.plex.tv/articles/200289336-analyze-media/

Is it possible to get autoscan to tell Plex to Analyze the media it scans too?

Thank you!

@l3uddz
Copy link
Member

l3uddz commented Mar 18, 2021

This would require Plex to enhance their Scan API with an analyse flag.

@ponchohoncho
Copy link
Author

ponchohoncho commented Mar 18, 2021 via email

@karan
Copy link

karan commented Sep 26, 2021

@m-rots
Copy link
Collaborator

m-rots commented Mar 2, 2022

Can't we do this:

https://github.com/fracai/plex-reanalyze/blob/f9f8116fb90bc420dd36eedccc2ab5f6e8e4b5bf/plex-reanalyze.py#L13

We would have to either access Plex's database or use some of their internal APIs to figure out which metadata item to put in the URL. Autoscan only works with paths and there is no way for Autoscan to know when a certain path has been scanned by Plex. So it's unclear when to even search for a metadata item ID corresponding to the original path.

We do not plan to work on a workaround thus I suggest you to open a feature request on Plex's forum instead.

@m-rots m-rots closed this as completed Mar 2, 2022
@m-rots m-rots added feature A new feature! :D wontfix This will not be worked on labels Mar 2, 2022
@m-rots m-rots closed this as not planned Won't fix, can't repro, duplicate, stale Dec 2, 2022
@m-rots m-rots mentioned this issue Jan 31, 2023
@SpartacusIam
Copy link

SpartacusIam commented Oct 28, 2023

Can't we do this:
https://github.com/fracai/plex-reanalyze/blob/f9f8116fb90bc420dd36eedccc2ab5f6e8e4b5bf/plex-reanalyze.py#L13

We would have to either access Plex's database or use some of their internal APIs to figure out which metadata item to put in the URL. Autoscan only works with paths and there is no way for Autoscan to know when a certain path has been scanned by Plex. So it's unclear when to even search for a metadata item ID corresponding to the original path.

We do not plan to work on a workaround thus I suggest you to open a feature request on Plex's forum instead.

Could you not just tell autoscan to analyze the path it was just told to scan via a trigger? File would change, trigger would tell autoscan to scan the path, then if, eanbled in the config, also tell plex to analyze what under the same path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature! :D wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

5 participants