pymedusa / Medusa

Automatic Video Library Manager for TV Shows. It watches for new episodes of your favorite shows, and when they are posted it does its magic.
https://pymedusa.com
GNU General Public License v3.0
1.77k stars 276 forks source link

Show not getting updated from TMDB #10066

Closed Rouzax closed 2 years ago

Rouzax commented 2 years ago

Describe the bug Had another instance where a show did not get updated with new season information from TMDB in Medusa Locke & Key only showed the first season for me today, after clicking on Full Update did it go out and fetch the season 2 information.

Medusa Configuration

Medusa Info: | Branch: master Commit: 729ab4f066034709137edb43440dba7c84959626 Version: 0.5.20 Database: 44.18 -- | -- Python Version: | 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)] SSL Version: | OpenSSL 1.1.1l 24 Aug 2021 OS: | Windows-10-10.0.17763-SP0 Locale: | nl_NL.cp1252 Timezone: | W. Europe Standard Time

Don't really have any log files.

neo-neo1 commented 2 years ago

Locke & Key is the show you're looking for. Always check spelling :)

Rouzax commented 2 years ago

The spelling was right in Medusa just typed it wrong myself in Github.

@p0psicles Just had another instance of this happening. Show Hightown (2020) did not show second season until I did a Mass Update. Afterwards, it started to download episodes.

Do actually have the old DB that I can share to validate this.

p0psicles commented 2 years ago

How long was the update overdue? Did you try looking for some logs related to the show update or season update? Have you only seen this issues when a new season was added? Like does it properly update now for each week?

Rouzax commented 2 years ago

Will try to find some time this weekend to look at it. I think the Locke & Key one was already more than a month, this one a few weeks I think.

What would be the Log section to look for? Always run with debug enabled and have around 100MB of them 🙂

Have the feeling it is only new seasons that don't get updated.

neo-neo1 commented 2 years ago

Does it have issues with anything else related not updating? When Medusa snatches and imports a new episode are thumbnail metadata photos (Kodi 12+) updated fine for new seasons? Please verify this.

Rouzax commented 2 years ago

Does it have issues with anything else related not updating? When Medusa snatches and imports a new episode are thumbnail metadata photos (Kodi 12+) updated fine for new seasons? Please verify this.

I don't generate nfo files so can't really look at that. Adding new shows will pull all metadata with issues. No issues with images or anything else.

neo-neo1 commented 2 years ago

show did not get updated with new season information from TMDB in Medusa Locke & Key only showed the first season for me

The next time this happens try refreshing the page in your browser. I've experienced this behavior today and a page refresh fixed it.

Rouzax commented 2 years ago

Will do but In my case the episodes of the missing season were not snatched because Medusa didn't know to download.

Rouzax commented 2 years ago

Just had another instance of the Show Temple, it did not have a second season, and after I changed the setting Choose hour to update shows it triggered a show update for all shows resulting in adding the second season.

The second season was already entered in TMDB https://www.themoviedb.org/tv/93177-temple/season/2/changes?filter_key=key&filter=episode image

p0psicles commented 2 years ago

I suspect this is an issue with the api. We query this api. https://developers.themoviedb.org/3/changes/get-tv-change-list

So somehow new seasons are not returned in this list?

Rouzax commented 2 years ago

So far it's new seasons that did not show up, not sure if that is consistently the case though. I think weekly episode are done okay.

p0psicles commented 2 years ago

@Rouzax i think i found the issue. Could you checkout branch feature/improve-show-updating and run this for a while. It should start running more full show updates, besides the season updates.

Rouzax commented 2 years ago

@p0psicles could I just do this and save? image

p0psicles commented 2 years ago

I would recommend using git commands. git fetch origin git checkout -t origin/feature/improve-show-updating

Rouzax commented 2 years ago

Running as we speak. Is there anything specific I would need to look at? image

p0psicles commented 2 years ago

I expect it to do more show updates. So that should show in the logs starting after your next show update

Rouzax commented 2 years ago

What would be the debug log tag I'm looking for? 2022-02-11 14:25:47 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [TorrentLeech] :: [dd0b950] 60574: Allowed, Preferred = [ 1080p WEB-DL, 4K UHD WEB-DL ] [ 4K UHD WEB-DL ] Found = [ 720p HDTV ]

p0psicles commented 2 years ago

Ow you mean like.. you can look out for this in the logs: Could not detect a season update, but an update is required ?

p0psicles commented 2 years ago

At least that's logging when it's now doing a full show update where it didn't do before

Rouzax commented 2 years ago

Sorry, what I meant each log line always has tag/subject So for instance this one it's SEARCHQUEUE-DAILY-SEARCH 2022-02-11 14:25:47 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [TorrentLeech] :: [dd0b950] 60574: Allowed, Preferred = [ 1080p WEB-DL, 4K UHD WEB-DL ] [ 4K UHD WEB-DL ] Found = [ 720p HDTV ]

Which tag should I look for to see the show updates

p0psicles commented 2 years ago

Ooh right. That would be SHOW-UPDATER, SHOWQUEUE-UPDATE and SHOWQUEUE-SEASON-UPDATE

p0psicles commented 2 years ago

but mainly SHOW-UPDATER

Rouzax commented 2 years ago

I'll keep an eye on it

Rouzax commented 2 years ago

How often should it run? Is that this one? image

here is the debug log with everything else excluded (SEARCHQUEUE-DAILY-SEARCH, SEARCHQUEUE-BACKLOG, FINDSUBTITLES, POSTPROCESSQUEUE-POST-PROCESS) https://gist.github.com/Rouzax/4579d824a0b88900b4ee1fdcdc8bf9b7

p0psicles commented 2 years ago

Logs look good. I'm merging the PR. I'm confident that it's fixed with this.

Rouzax commented 2 years ago

How do I get back again?

git fetch origin
git checkout -t origin/master
p0psicles commented 2 years ago

hmm yeah. Except you don't need to track origin/master anymore. git checkout master or git checkout develop (if you want to run develop)

Rouzax commented 2 years ago

Awesome, that helped me get back indeed. How I feel sometimes 😄 image

Rouzax commented 2 years ago

@p0psicles Looks like it is working. Just had an episode being downloaded of an old show that I forgot about. image