Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SickRage-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
SickRage-1
Commits
66babc76
Unverified
Commit
66babc76
authored
Mar 2, 2017
by
miigotu
Browse files
Options
Downloads
Patches
Plain Diff
Fix #3291
Signed-off-by:
miigotu
<
miigotu@gmail.com
>
parent
49ff887e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sickrage/show/ComingEpisodes.py
+8
-3
8 additions, 3 deletions
sickrage/show/ComingEpisodes.py
with
8 additions
and
3 deletions
sickrage/show/ComingEpisodes.py
+
8
−
3
View file @
66babc76
...
...
@@ -24,6 +24,7 @@ from sickbeard.common import WANTED, UNAIRED
from
sickbeard.db
import
DBConnection
from
sickbeard.network_timezones
import
parse_date_time
from
sickbeard.sbdatetime
import
sbdatetime
from
sickrage.helper.common
import
dateFormat
,
timeFormat
from
sickrage.helper.quality
import
get_quality_string
from
operator
import
itemgetter
...
...
@@ -109,12 +110,13 @@ class ComingEpisodes(object):
continue
result
[
b
'
airs
'
]
=
str
(
result
[
b
'
airs
'
]).
replace
(
'
am
'
,
'
AM
'
).
replace
(
'
pm
'
,
'
PM
'
).
replace
(
'
'
,
'
'
)
result
[
b
'
airdate
'
]
=
result
[
b
'
localtime
'
].
toordinal
()
if
result
[
b
'
localtime
'
].
toordinal
()
<
today
:
if
result
[
b
'
airdate
'
]
<
today
:
category
=
'
missed
'
elif
result
[
b
'
localtime
'
].
toordinal
()
>=
next_week
:
elif
result
[
b
'
airdate
'
]
>=
next_week
:
category
=
'
later
'
elif
result
[
b
'
localtime
'
].
toordinal
()
==
today
:
elif
result
[
b
'
airdate
'
]
==
today
:
category
=
'
today
'
else
:
category
=
'
soon
'
...
...
@@ -126,8 +128,11 @@ class ComingEpisodes(object):
result
[
b
'
network
'
]
=
''
result
[
b
'
quality
'
]
=
get_quality_string
(
result
[
b
'
quality
'
])
result
[
b
'
airs
'
]
=
sbdatetime
.
sbftime
(
result
[
b
'
localtime
'
],
t_preset
=
timeFormat
).
lstrip
(
'
0
'
).
replace
(
'
0
'
,
'
'
)
result
[
b
'
weekday
'
]
=
1
+
result
[
b
'
localtime
'
].
weekday
()
result
[
b
'
tvdbid
'
]
=
result
[
b
'
indexer_id
'
]
result
[
b
'
airdate
'
]
=
sbdatetime
.
sbfdate
(
result
[
b
'
localtime
'
],
d_preset
=
dateFormat
)
result
[
b
'
localtime
'
]
=
result
[
b
'
localtime
'
].
toordinal
()
grouped_results
[
category
].
append
(
result
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment