1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-08-13 16:53:54 -04:00

Fix for importing existing shows being set to anime when there not anime shows causing parsing errors when trying to parse episode files from disk. Please perform a mass reset of shows marking the ones that are not anime so that this issue is fixed for when it does its next show refresh.

This commit is contained in:
echel0n 2014-06-04 19:47:40 -07:00
parent 1dc913824a
commit 9e4ec2cfb8
2 changed files with 7 additions and 7 deletions

View File

@ -586,7 +586,7 @@ class TVShow(object):
logger.log(u"Unable to parse the filename " + file + " into a valid episode", logger.ERROR)
return None
if len(parse_result.episode_numbers) == 0 and not (parse_result.air_by_date or parse_result.sports):
if not len(parse_result.episode_numbers) and not (parse_result.air_by_date or parse_result.sports):
logger.log("parse_result: " + str(parse_result))
logger.log(u"No episode number found in " + file + ", ignoring it", logger.ERROR)
return None

View File

@ -2510,12 +2510,12 @@ class NewHomeAddShows:
if indexer is not None and indexer_id is not None:
# add the show
sickbeard.showQueueScheduler.action.addShow(indexer, indexer_id, show_dir,
sickbeard.STATUS_DEFAULT,
sickbeard.QUALITY_DEFAULT,
sickbeard.FLATTEN_FOLDERS_DEFAULT,
sickbeard.SUBTITLES_DEFAULT,
sickbeard.ANIME_DEFAULT,
sickbeard.SCENE_DEFAULT)
default_status=sickbeard.STATUS_DEFAULT,
quality=sickbeard.QUALITY_DEFAULT,
flatten_folders=sickbeard.FLATTEN_FOLDERS_DEFAULT,
subtitles=sickbeard.SUBTITLES_DEFAULT,
anime=sickbeard.ANIME_DEFAULT,
scene=sickbeard.SCENE_DEFAULT)
num_added += 1
if num_added: