mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-16 14:25:02 -05: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:
parent
1dc913824a
commit
9e4ec2cfb8
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user