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

Question regarding guid changes in 1.20.0.3125 #534

Closed
saltydk opened this issue Jul 23, 2020 · 25 comments
Closed

Question regarding guid changes in 1.20.0.3125 #534

saltydk opened this issue Jul 23, 2020 · 25 comments

Comments

@saltydk
Copy link

saltydk commented Jul 23, 2020

With the release of Plex Beta version 1.20.0.3125 the new Plex Movie agent has changed to some funky looking guid format:
plex://movie/5d9f34ffb0262f001f6e9703

Is there any chance you guys know how or can help me convince Plex devs to add something to allow me to still identify which IMDB/TMDB ID is being used to match the file to metadata? For context I am using https://github.com/saltydk/matcharr to fix mismatches and would love to be able to use it on the new agent as well.

@blacktwin
Copy link
Collaborator

Use the matches method for any video object. You can input any available agent.

@saltydk
Copy link
Author

saltydk commented Jul 24, 2020

Have you looked at their changes? You can no longer use any external IDs?

@Hellowlol
Copy link
Collaborator

I would prefer i kept the old ones :)

@blacktwin
Copy link
Collaborator

You can no longer use any external IDs?

What do you mean? You mean search by the IMDB ID?

@saltydk
Copy link
Author

saltydk commented Jul 24, 2020

Using the new movie agent? How?

@saltydk
Copy link
Author

saltydk commented Jul 24, 2020

My reasoning is as follows

section = server.library.sectionByID("8")
media = section.all()
match = media[0].matches()

This returns something like
image

Which makes me unable to validate the match against anything other than the Plex metadata backend. So no IMDB/TMDB comparison point.

@blacktwin
Copy link
Collaborator

You would have to search with whatever agent you wanted. media.matches(agent='imdb').

@saltydk
Copy link
Author

saltydk commented Jul 24, 2020

I'm not sure you're following what my problem is, I may have been explaining it poorly. When I want to compare what the Plex agent has matched to using the new format I cannot compare it to IMDB/TMDB, overwriting it entirely is not really useful as I could just avoid the new agent then.

I want to look at the current metadata match information and compare it to data from an external source (sonarr/radarr) which I trust to have the right information.

@blacktwin
Copy link
Collaborator

media.matches(agent='imdb') doesn't overwrite anything. It just searches for matches based on the agent defined by the library or whatever agent you define in the kwarg. You would need to use the fixMatch() method to apply match. This emulates how the webui works. Find matches, select match, apply.

This isn't the best solution and is abusing the matching function from Plex. You might be better off using another tool for matching. There is a python library for TMDB. TMDB results give you the IMDB ID as well.

@saltydk
Copy link
Author

saltydk commented Jul 29, 2020

The core issue is still identifying what the current metadata is from.

@blacktwin
Copy link
Collaborator

It's from Plex's new agent. :) The guid is some concatenated or trimmed or concatenated and trimmed hash. What is used to create that hash and whether whatever that is, is useful for linking to external sources, who knows.

@saltydk
Copy link
Author

saltydk commented Jul 29, 2020

I get it, I was just hoping someone smarter than me had a way around it or some choice words for Plex devs to change the functionality.

@blacktwin
Copy link
Collaborator

You aren't alone, unless this is also you.

@saltydk
Copy link
Author

saltydk commented Jul 29, 2020

No, but I am the guy that got this reply

@saltydk
Copy link
Author

saltydk commented Jul 29, 2020

With this being a clue that Plex is going in the wrong direction as far as I am concerned.

@blacktwin
Copy link
Collaborator

Thats up for debate but thats outside the scope of this project.

@saltydk
Copy link
Author

saltydk commented Jul 29, 2020

Fair enough, thanks anyway :)

@saltydk saltydk closed this as completed Jul 29, 2020
@saltydk
Copy link
Author

saltydk commented Aug 20, 2020

Newest beta has updated the new agent to include TMDB/IMDB guid. Any chance you lads can look at it now?

@saltydk saltydk reopened this Aug 20, 2020
@jjlawren
Copy link
Collaborator

Since you reported the issue and provided an example, could you validate the fix?

@saltydk
Copy link
Author

saltydk commented Aug 20, 2020

They have added entries like

<Guid id="tmdb://328644"/>

For any tmdb/imdb relations when requesting library/metadata item.

@blacktwin
Copy link
Collaborator

Looks like we're getting duplicate issues. #557

@saltydk
Copy link
Author

saltydk commented Aug 22, 2020

I guess it makes sense to wait for the beta release to be done. I'd suggest loading the extra guid's on the current one like you do with folders I assume that would mean no work required once they update the TV agent at a later date.

@Mnk3y
Copy link

Mnk3y commented Aug 28, 2020

@Mnk3y
Copy link

Mnk3y commented Sep 4, 2020

I think there is another problem. The Guid elements are not shown on the /library/sections/X/all page but only in the single view /library/metadata/X of an item. So you will not be able to find them using the search function, right?

@blacktwin
Copy link
Collaborator

Looks like #557 is very similar to this issue. #557 has some good information about what has happened and what can happen to address the impact this project has on other projects. I'd like to close this issue and continue the discussion in #557. Sound good?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants