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

Port:Fix not setting status if show location is missing but sickbeard.ADD_SHOWS_WO_DIR is set

This commit is contained in:
JackDandy 2014-06-10 13:40:11 +01:00
parent b9c22582cf
commit 1c487f92f9

View File

@ -1641,8 +1641,8 @@ class TVEpisode(object):
self.deleteEpisode()
return False
# don't update show status if show dir is missing, unless missing show dirs are created during post-processing
if not ek.ek(os.path.isdir, self.show._location) and not sickbeard.CREATE_MISSING_SHOW_DIRS:
# don't update show status if show dir is missing, unless it's missing on purpose
if not ek.ek(os.path.isdir, self.show._location) and not sickbeard.CREATE_MISSING_SHOW_DIRS and not sickbeard.ADD_SHOWS_WO_DIR:
logger.log(
u"The show dir is missing, not bothering to change the episode statuses since it'd probably be invalid")
return