Commit 461d0cc7 authored by echel0n's avatar echel0n

Fixed residual issue causing shows not to update from changes made to network...

Fixed residual issue causing shows not to update from changes made to network timezone updater in previous update.
parent 0d519ffe
This diff is collapsed.
......@@ -28,13 +28,10 @@ from sickrage.core.common import UNAIRED, SKIPPED, statusStrings
def new_episode_finder():
curDate = datetime.date.today()
if sickrage.app.tz_updater.network_dict:
curDate += datetime.timedelta(days=1)
else:
curDate += datetime.timedelta(days=2)
curDate += datetime.timedelta(days=1)
curTime = datetime.datetime.now(sickrage.app.tz)
show = None
curTime = datetime.datetime.now(sickrage.app.tz)
for episode in sickrage.app.main_db.all('tv_episodes'):
if not all([episode['status'] == UNAIRED, episode['season'] > 0, episode['airdate'] > 1]):
......
......@@ -1030,18 +1030,15 @@ class TVEpisode(object):
def release_group(show, name):
if name:
name = remove_non_release_groups(remove_extension(name))
else:
return ""
try:
parse_result = NameParser(name, showObj=show, naming_pattern=True).parse(name)
except (InvalidNameException, InvalidShowException) as e:
sickrage.app.log.debug("Unable to get parse release_group: {}".format(e))
return ''
if not parse_result.release_group:
return ''
return parse_result.release_group
try:
parse_result = NameParser(name, showObj=show, naming_pattern=True).parse(name)
if parse_result.release_group:
return parse_result.release_group
except (InvalidNameException, InvalidShowException) as e:
sickrage.app.log.debug("Unable to get parse release_group: {}".format(e))
return ''
__, epQual = Quality.splitCompositeStatus(self.status)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment