HawkXP71 139 Posted October 8 Posted October 8 With new seasons coming out, I have noticed a bug in the missing episodes system. If you dont have any episodes from a season, meaning there is no season at all in the database, than episodes dont show up as missing. This may be 100% intentional, but I do consider it a bug. I can grab a log, but honestly I dont see anything it it happening when I click "show missing episodes" Here is an easy way to reproduce it using a developer servers. find a tv series with multiple seasons (2 is enough) On the hard drive have two copies of the show On one copy have all but one episode of the last season available, ie delete the episode from the hard drive On the other copy, delete the last season completely. Create two developer servers Point each one to the separate of your local seasons Scan the libraries, making sure the "find missing episodes" tasks has finished running (not sure how/when this gets kicked off) You should see, in the first server it shows the missing episode from that season. On the second server, the last season does NOT show up as missing. Note, to reproduce there might be an easier way. However I have found, when I remove a season from the harddrive, the database now "knows about" the season, even though it has no episodes and the missing episode list works as expected. This is why I consider it a bug.
Luke 43549 Posted October 8 Posted October 8 Quote Point each one to the separate of your local seasons Hi, what do you mean by this?
HawkXP71 139 Posted October 8 Author Posted October 8 44 minutes ago, Luke said: Hi, what do you mean by this? Sorry, should have been clearer. Have one server point to one folder and the other server point to the other folder. If your directory was MissingEpisode/Show |-Season1 |- S01E01 .... |- S01EXX |-Season2 |- S02E01 .... |- S02EYY (where YY is number of episodes - 1) MissingSeason/Show |-Season1 |- S01E01 .... |- S01EXX The root library location for server 1 would be MissingEpisode, and for server 2 would be MissingSeason. Is that clearer?
Luke 43549 Posted October 8 Posted October 8 So they're actually independent because each server only sees one? So really you only need to test one, right?
HawkXP71 139 Posted October 8 Author Posted October 8 1 hour ago, Luke said: So they're actually independent because each server only sees one? So really you only need to test one, right? Yes, the two servers are 100% independent. The reason why I used 2 in the how to, was in the note in my initial post Quote Note, to reproduce there might be an easier way. However I have found, when I remove a season from the hard drive, the database now "knows about" the season, even though it has no episodes and the missing episode list works as expected. This is why I consider it a bug.
HawkXP71 139 Posted October 8 Author Posted October 8 FYI. In the plugin I am working on, where I created "Find missing movies from collections" functionality, as well as find missing episodes, I initially had the same issue. The problem came down to this. seasons = getSeasonsFromTmdb( show ) foreach( season of seasons ) { embySeason = GetEmbySeasonForShow( show ); if ( !embySeason ) // the bug removing this check fixed it continue; foreach( episode of season ) { // it used embySeason as a parent for the internal query // now if embySeason is null, it always returns a null episode embyEpisode = GetEmbyEpisode( embySeason, embyEpisode ); if ( !embyEpisode ) { // found a missing episode } } } You might have similar logic somewhere
Luke 43549 Posted October 8 Posted October 8 i can't reproduce. i have lots of series with only a single season/episode and i'm not seeing this.
HawkXP71 139 Posted October 8 Author Posted October 8 38 minutes ago, Luke said: i can't reproduce. i have lots of series with only a single season/episode and i'm not seeing this. So your saying if you have NO episodes in a season, ie the new season starts tomorrow, and you dont have episode 1 of season 2 yet, it shows you the missing episode?
Solution Lessaj 613 Posted October 8 Solution Posted October 8 Can you show an actual example? If the new season starts tomorrow then it can't be missing can it? It's not available. Are you saying it doesn't appear under Upcoming, or are you expecting it to show you "missing episodes" that haven't been released yet without using the Upcoming toggle? This season starts tonight (not sure why it says Oct 7 in that case, but regardless it's upcoming), I don't have a Season 4 folder. Compared to this show I only have 1 episode in my test instance shows season 2 episodes missing, I have no season 2 folder. 1
HawkXP71 139 Posted October 9 Author Posted October 9 Feeling like an idiot now... I never noticed the upcoming... ;( 1 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now