Closed sven-7 closed 8 years ago
Sorry - would have labeled this a "BUG", but I don't think I'm a contributor on HAMA.
I also have both as tvdb4. For Dragon Ball Kai, looks like the missing ep check for tvdb4 is buggy. tvdb4 tvdb3
For Hunter X Hunter (2011), i'm not getting anything reported as missing though myself.
Looks like this should fix the evaluation of missing episodes. Here is what you can use to test that "init.py" - https://gist.github.com/EndOfLine369/8a65f6656f7ffa2a93ae60bb466459dc"
FROM:
### Check for Missing Episodes ###
if len(media.seasons)>2 or max(map(int, media.seasons.keys()))>1 or metadata_id_source_core == "tvdb":
if currentSeasonNum and not (currentSeasonNum in media.seasons and (currentEpNum in media.seasons[currentSeasonNum].episodes or not metadata_id_source == "tvdb4" and currentAbsNum in media.seasons[currentSeasonNum].episodes or metadata_id_source == "tvdb4" and [currentAbsNum in media.seasons[season].episodes for season in media.seasons].count(True) > 0)):
if currentSeasonNum == '0': tvdb_special_missing.append(numbering)
else: tvdb_episode_missing.append(numbering)
TO:
### Check for Missing Episodes ###
if len(media.seasons)>2 or max(map(int, media.seasons.keys()))>1 or metadata_id_source_core == "tvdb":
if currentSeasonNum and not (
((not metadata_id_source in ["tvdb3","tvdb4"] or currentSeasonNum==0) and currentSeasonNum in media.seasons and currentEpNum in media.seasons[currentSeasonNum].episodes) or
(metadata_id_source in ["tvdb3","tvdb4"] and [currentAbsNum in media.seasons[season].episodes for season in media.seasons].count(True) > 0)
):
if currentSeasonNum == '0': tvdb_special_missing.append(numbering)
else: tvdb_episode_missing.append(numbering)
Fixed my Dragon Ball Kai and fingers crossed it fixes your HxH.
@EndOfLine369 Well coded. You are now a collaborator sven-7. Please feedback on this code as you always did My time is becoming very limited so every hand counts. Please pardon the short codes and replies, most of times, i reply from my phone and looking code there is excruciating. am at work now so that's why i could rewrite the code :p
This has been committed as worked for me and have not heard back from sven-7 to say the contrary.
Sorry @EndOfLine369. Only had a chance to get it last night -- will grab the committed one now. Been slammed all week with work. At first glance, it seemed to be working well. Will do a full refresh with the production one and report back on HxH. Sorry!
Good news: no HxH
Bad news: No Dragon Ball Kai at all. I just added episode 99, but I'm missing 100+. None of that showed up in the logs.
Sure the scanner didn't crash in plex media scanner.log? Need scanner filelist to rebuild library
Please make sure you pulled the updated json file as hama will not load as it will see a missing pref.
Just committed a fix I found from an update I made yesterday. Maybe that is was was causing your issue.
Error I saw was in "Plex Logs/Plex Media Scanner.log" I saw:
Error in Python: Running scanner:
Traceback (most recent call last):
File "/root/Library/Plex Media Server/Scanners/Series/Absolute Series Scanner.py", line 391, in Scan
title = clean_string( " ".join(words)[" ".join(words).index(ep)+len(ep):] ) # take everything after supposed episode number
ValueError: substring not found
I've noticed a few issues surrounding tvdb3 shows now.
All of a sudden I had Thundercats (66-125 missing) and Yu-Gi-Oh (50-224 missing) show up in the log claiming missing episodes, but I've verified they exist.
I was going to remove them from the library completely and re-add them, but before doing so I'll pass this here.
Please make sure that you don't just need to refresh the metadata for just that series entry. Plex is not perfect as I have seen instances where it load the files but does not retry to load the metadata or if you have two folders being merged and you have to refresh manually after they have merged for all data to be see together in a single refresh. EX: I have these in two separate folders to keep to AniDB but have both as a single entry in Plex.
Dragon Ball Z Kai [tvdb4-88031] (Dragon Ball Kai) [anidb-6399]
Dragon Ball Z Kai - The Final Chapters [tvdb4-88031] (Dragon Ball Kai (2014)) [anidb-10452]
Looking at closing this tomorrow as there has been no update for over a week now.
Looks fine for me. Closing #55.
Noticed two things today about the logs. Both shows are running tvdb4.