Fix non-anime propers being skipped for not having a version

This commit is contained in:
Adam 2014-08-11 20:40:29 +08:00 committed by adam
parent 90146d33fa
commit d0b0ec2f3d

View file

@ -138,17 +138,17 @@ class ProperFinder():
# populate our Proper instance # populate our Proper instance
curProper.season = parse_result.season_number if parse_result.season_number != None else 1 curProper.season = parse_result.season_number if parse_result.season_number != None else 1
curProper.episode = parse_result.episode_numbers[0] curProper.episode = parse_result.episode_numbers[0]
curProper.release_group = parse_result.release_group
curProper.version = parse_result.version
curProper.quality = Quality.nameQuality(curProper.name, parse_result.is_anime)
# only get anime proper if it has release group and version # only get anime proper if it has release group and version
if parse_result.is_anime: if parse_result.is_anime:
if parse_result.release_group and parse_result.version: if not curProper.release_group and curProper.version == -1:
curProper.release_group = parse_result.release_group logger.log(u"Proper " + curProper.name + " doesn't have a release group and version, ignoring it",
curProper.version = parse_result.version logger.DEBUG)
else:
continue continue
curProper.quality = Quality.nameQuality(curProper.name, parse_result.is_anime)
if not show_name_helpers.filterBadReleases(curProper.name): if not show_name_helpers.filterBadReleases(curProper.name):
logger.log(u"Proper " + curProper.name + " isn't a valid scene release that we want, ignoring it", logger.log(u"Proper " + curProper.name + " isn't a valid scene release that we want, ignoring it",
logger.DEBUG) logger.DEBUG)