Tautulli / Tautulli-Issues

Bug reports for Tautulli
18 stars 3 forks source link

Cannot fix metadata on episode, rating key does not change #129

Closed Jeeaaasus closed 5 years ago

Jeeaaasus commented 5 years ago

Version: v2.1.22 Branch: master Commit hash: 03751abc0e34575e2b57d9f0edb241303059ea97 Operating system: Linux 3.10.102 (#15284 SMP Mon Jul 9 23:04:14 CST 2018) Python version: 2.7.14 (default, May 28 2018, 14:47:18) Link to logs: tautulli.log What you did? Tried to use the "Fix Metadata" button on an episode What happened? Nothing What you expected? Expected the rating key to change

How can we reproduce your issue? Unsure.. I'm pretty sure that removing and re-adding files to plex sometimes does this, but it should be possible to simply fix metadata

Info: Some how the info on my jack ryan show got desynced image Here you see 2 different playbacks of the same episode. But if I go to that episode there is only one playback

If I go to the lower of the two, here's how it looks: image Only one playback.

If I press "Fix Metadata" and select the correct episode image Everything is fine. But nothing happens, the old rating key does not change.

I did this process and then downloaded the logs.

JonnyWong16 commented 5 years ago

https://github.com/Tautulli/Tautulli-Wiki/wiki/Asking-for-Support#how-can-i-share-my-logs

Jeeaaasus commented 5 years ago

I did include the logs?

Link to logs: tautulli.log

JonnyWong16 commented 5 years ago

Step 3.

No one is going to download a file onto their device to look at your logs.

Jeeaaasus commented 5 years ago

https://gist.github.com/Jeeaaasus/59556ec301c4d757bb062fd247554730

JonnyWong16 commented 5 years ago

Have you actually confirmed the rating key is different on your Plex server?

Jeeaaasus commented 5 years ago

I'm not sure how I would double check that, how ever let me show some examples.

I just started the episode again and Tautulli sees that: image 3 playbacks

If I click the top or second one (Tautulli Rating key 264112): image

And the bottom one (Tautulli Rating key 263979): image

JonnyWong16 commented 5 years ago

What if you manually go to

http://localhost:8181/update_metadata_details?old_rating_key=263979&new_rating_key=264112&media_type=episode
Jeeaaasus commented 5 years ago

Same message as in the log: image

No change.

I also tried through the api with cmd=update_metadata_details earlier and same result. updated logs: https://gist.github.com/Jeeaaasus/4b27f5a2a43bb166f5b96d7117215035

JonnyWong16 commented 5 years ago

Try it from the show level.

http://localhost:8181/update_metadata_details?old_rating_key=XXXXX&new_rating_key=YYYYY&media_type=show

Or for the info page

http://localhost:8181/info?rating_key=XXXXX&source=history
Jeeaaasus commented 5 years ago

With the same rating keys I tried before: "Unable to update metadata in database. No changes were made." image

image

JonnyWong16 commented 5 years ago

You need the show's rating key.

Jeeaaasus commented 5 years ago

And what should I input as new rating key?

JonnyWong16 commented 5 years ago

If the show level rating key hasn't changed inside the Tautulli database, then just enter the same number.

Jeeaaasus commented 5 years ago

I dont think it's gotten a new rating key for the show, but I'm not sure.. I only see one jack ryan in my library image

Same "Updated metadata in database." image

Nothing changed.

JonnyWong16 commented 5 years ago

Then it's probably not updating because you have one episode already listed under two different rating keys in the database. You will have to manually edit the database if you want to fix it.

I'm closing this issue because this is not a bug report.

JonnyWong16 commented 5 years ago

Or try switching to the nightly branch. Reverse sorting might do the trick.

https://github.com/Tautulli/Tautulli/commit/4302c4bc0dcf2762cb4937dbfe98ed1c81d03be1

Jeeaaasus commented 5 years ago

I'm going to delete the show from plex and re-add it and then hopefully it works, Thanks for your help :)

JonnyWong16 commented 5 years ago

That will just make it even worse...

https://github.com/Tautulli/Tautulli-Wiki/wiki/Frequently-Asked-Questions#move-media