Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SiCKRAGE
sickrage
Commits
7f39cc33
Commit
7f39cc33
authored
May 31, 2018
by
echel0n
Browse files
Fixed issue #224 - backlog searches not working
parent
088906ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
changelog.md
View file @
7f39cc33
# Changelog
-
*
a703ade - 2018-05-27: Refactored SiCKRAGE API class
-
*
6f42ab3 - 2018-05-31: Fixed issue #224 - backlog searches not working
-
*
088906e - 2018-05-27: Refactored SiCKRAGE API class
-
*
39debf7 - 2018-05-27: Added Google drive API endpoints
-
*
4dd25e6 - 2018-05-27: Migrated from oauth2 client credential grant to password grant Migrated SiCKRAGE API endpoints
-
*
510fe7d - 2018-05-26: Misc changes/fixes for database calls
...
...
sickrage/core/searchers/backlog_searcher.py
View file @
7f39cc33
...
...
@@ -80,7 +80,7 @@ class BacklogSearcher(object):
if
not
which_shows
and
self
.
forced
:
sickrage
.
app
.
log
.
info
(
"Running limited backlog on missed episodes "
+
str
(
sickrage
.
app
.
config
.
backlog_days
)
+
" day(s)
and older only
"
)
sickrage
.
app
.
config
.
backlog_days
)
+
" day(s)
old
"
)
from_date
=
datetime
.
date
.
today
()
-
datetime
.
timedelta
(
days
=
sickrage
.
app
.
config
.
backlog_days
)
else
:
sickrage
.
app
.
log
.
info
(
'Running full backlog search on missed episodes for selected shows'
)
...
...
@@ -114,7 +114,7 @@ class BacklogSearcher(object):
# check through the list of statuses to see if we want any
wanted
=
[]
for
result
in
(
x
for
x
in
sickrage
.
app
.
main_db
.
get_many
(
'tv_episodes'
,
show
.
indexerid
)
if
x
[
'season'
]
>
0
and
datetime
.
date
.
today
().
toordinal
()
>
x
[
'airdate'
]
<
=
from_date
.
toordinal
()):
x
[
'season'
]
>
0
and
datetime
.
date
.
today
().
toordinal
()
>
x
[
'airdate'
]
>
=
from_date
.
toordinal
()):
curStatus
,
curQuality
=
Quality
.
splitCompositeStatus
(
int
(
result
[
"status"
]
or
-
1
))
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment