Private GIT

Skip to content
Snippets Groups Projects
Unverified Commit f20a259b authored by miigotu's avatar miigotu
Browse files

Fixes #3254


Signed-off-by: default avatarmiigotu <miigotu@gmail.com>
parent 59323b57
Branches
Tags
No related merge requests found
...@@ -110,11 +110,11 @@ class ComingEpisodes(object): ...@@ -110,11 +110,11 @@ class ComingEpisodes(object):
result[b'airs'] = str(result[b'airs']).replace('am', ' AM').replace('pm', ' PM').replace(' ', ' ') result[b'airs'] = str(result[b'airs']).replace('am', ' AM').replace('pm', ' PM').replace(' ', ' ')
if result[b'localtime'] < today: if result[b'localtime'].toordinal() < today:
category = 'missed' category = 'missed'
elif result[b'localtime'] >= next_week: elif result[b'localtime'].toordinal() >= next_week:
category = 'later' category = 'later'
elif result[b'localtime'] == today: elif result[b'localtime'].toordinal() == today:
category = 'today' category = 'today'
else: else:
category = 'soon' category = 'soon'
...@@ -126,7 +126,7 @@ class ComingEpisodes(object): ...@@ -126,7 +126,7 @@ class ComingEpisodes(object):
result[b'network'] = '' result[b'network'] = ''
result[b'quality'] = get_quality_string(result[b'quality']) result[b'quality'] = get_quality_string(result[b'quality'])
result[b'weekday'] = 1 + date.fromordinal(result[b'localtime']).weekday() result[b'weekday'] = 1 + result[b'localtime'].weekday()
result[b'tvdbid'] = result[b'indexer_id'] result[b'tvdbid'] = result[b'indexer_id']
grouped_results[category].append(result) grouped_results[category].append(result)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment