-
Notifications
You must be signed in to change notification settings - Fork 70
Incompatibility with the new Plex Movie agent #159
Comments
Can you post your log from plex_autoscan? I have fix mismatched options enabled, and have no issues with the scanner. Only thing is, it changes the poster data, but everything else will populate. If Plex is set up properly with the new movie agent, Plex Autoscan will tell Plex to scan using it, and once it's completed, it will change the guid to one of the legacy ones.. doesn't effect what you are describing. I had a similar issue to what you did, and it ended up being a permission issue. Can you validate your PLEX User (either for docker or sudo).. that fixed issue for me after months of wondering what was going on. I ended up scripting something to fix 16000 entries in movies the past 2 weeks.
|
My logs are very similar to yours.
I've re-enabled So, despite this line, it is not being matched to the legacy agent.
Plex runs under its own user, so I have sudo enabled in the config file. Technically speaking, turning off |
Hard to go further without seeing your Plex Log with Debug enabled (not verbose) while scanning an item. If you can run the following and fill in xyz
^ if the above command works and fixes the metadata, then there is something rogue going on with Plex_Autoscan, most likely permission issue. I agree the movie agent should be added, I even took a look at adding it myself, unfortunately unless Plex gives us some rhyme or reason to the plex://movie/HASH it's hard to validate it from Plex Autoscan. They did add XML tags/db entries with the TMDB_ID and IMDB_ID for other 3rd party tools (which Iuse to correct legitimate errors with metadata)
Which I guess, we could generate/validate against instead of forcing a com.plexapp.agents.XXXX://ID |
If you want to keep fix mismatch on for TV show for now.. you can edit Line 333 of plex.py to the following
It'll just skip it for the movies (anything with plex://movie/) I'm working on adding another function to grab the id's from the tags, and validate it that way, since we don't know how the new plex movie agent generates it's guid hash. Considering there is a new TV Plex Agent coming out, we'll run into this issue for TV Series soon too. If you want to help test, let me know. |
I don't understand why If a scan request is sent to Plex for the particular file (which has a proper name structure), it should add the file to the library without any issue. That scan request is not updated for the new agent. |
The reason for the option is for a few reasons.
Sometimes, the scanner mostly movies, ends up finding dupes, or sometimes the database has wrong years for movies (production, vs released, etc etc) When Sonarr/Radarr are set up to connect to Plex Autoscan, it tells PLEX to scan, but also provides Plex_autoscan with additional information. Mainly the IMDB/TMDB ID's for the Episode/Show/Movie, and all it tries to do is make sure the ID is found for that Item once it's been added, it's just to make sure Plex finds what Sonarr/Radarr found. If it doesn't match, it forces Plex to use the ID's supplied by Radarr/Sonarr. Plex scanner is a hit or miss, it'll work 99% of the time, and then stop for some odd qwirk, its really messed up.
|
I have the same issue where metadata is not pulling down until i manually refresh. I have the mismatch disabled however my movies are formatted into movie (year) {imdb-tt123456}.mkv format. Plex should pick up on the imdb reference. |
That's because the scan request for the new agent isn't the same as for the old agent. I made a rough script for Radarr auto scanning here: https://gist.github.com/agneevX/a865bc1821a1c6e5ca4a80fab5d2316a |
i tried the script, it just does a scan, doesn't pull the metadata. Running this refreshed the item and pulled the missing data down. Have tried redeploying plexautoscan but still same issue. curl -s -X PUT -i 'http://XXXXXXXXXX:32400/library/metadata/YYYYYYYYYYY/refresh?X-Plex-Token=ZZZZZZZZZZZ' X = hostname/fqdn to plex server |
cheers buddy. |
What the script does is, Looks through your database for any Movies (by section id) that do not have proper tagging, and forces plex to do a scan on JUST that item. You need sqlite3, and curl installed. |
Are you sure? I just tried it right now and it pulled all the info for the item. |
How often do you get mismatches? Personally, I've never encountered mismatches. |
Thank you. I took the liberty of optimizing the query, as it would have skipped some titles that did not meet the criteria. So I make sure that every file is updated.
|
my section Id for movies is 11 , check the image, movies metadata_type in my movies is 12 or 1, so i need to amend your script I think and change the 18 to either 12 or 1..Im not sure can you advise |
Leave 18 alone -that is Metadata TYPE.. not section id.. change the variable.. not any of the numbers.. 18 = Collections, not Movies. PLEX_MOVIE_SECTION_ID=11 |
Only edit the below, you can replace the QUERY with the one supplied by dennis if that suites you better.
|
thanks for your help but when i run it with your config. Nothing actually scans or refreshes. I don't see anything happening with it. SQL connects, runs and finishes but i see nothing happening in plex. Checking alerts and console. I am running the script on the same host. Reverse proxy. The web url is reacable I know when i run the curl on its own, works when i fill in details manually. Any thoughts? Not sure if this holds any relevance, but the metadata that is missing rating, cast ect, it does pull down some like synopsis. Would this have an impact on the script filtering for missing data? |
I have your script now working, however it will only refresh the metadata for one movie, normally the last movie that has has been added. It's not picking up on the other movies that require metadata. Ameded the script to also look for audience_rating is NULL this picks up on the movies that it is not refreshing the metadata for. Granted not ideal as a couple of movies that i have which dont have a rating but works fine. |
Plex_Autoscan is working well with the latest changes to PMS 1.21.1.3759 (changelog):
|
This would explain the behavior when |
EDIT 2: With Plex Media Server v1.21.1.3759, the metadata issue for movies with the new agent have been fixed, and I've disabled
Fix Mismatched
.EDIT: If
Fix Mismatched
is enabled,plex_autoscan
will attempt to match the movie with the legacy agent, but the new agent (Plex Movie) will ignore it, so this is the best option as of now.When adding movies to a library with the new Plex Movie agent, the movie isn't added properly, with
Fix Mismatched
disabled.Part of
config.json
:As you can see, there's missing info and no cast info is downloaded.
(The metadata-fetching visible is because I hit Refresh Metadata)
The text was updated successfully, but these errors were encountered: