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
d0bfdce5
Commit
d0bfdce5
authored
Oct 9, 2015
by
Dustyn Gibson
Browse files
Options
Downloads
Plain Diff
Merge branch 'hotfix-3220' into develop
parents
06b167cb
48637af6
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
sickbeard/providers/scc.py
+77
-69
77 additions, 69 deletions
sickbeard/providers/scc.py
with
77 additions
and
69 deletions
sickbeard/providers/scc.py
+
77
−
69
View file @
d0bfdce5
...
...
@@ -95,15 +95,18 @@ class SCCProvider(generic.TorrentProvider):
title
=
'
<title>.+? \| %s</title>
'
%
section
return
re
.
search
(
title
,
text
,
re
.
IGNORECASE
)
def
_doSearch
(
self
,
search_params
,
search_mode
=
'
eponly
'
,
epcount
=
0
,
age
=
0
,
epObj
=
None
):
#FIXME ADD MODE
results
=
data
=
[]
def
_doSearch
(
self
,
search_strings
,
search_mode
=
'
eponly
'
,
epcount
=
0
,
age
=
0
,
epObj
=
None
):
if
not
self
.
_doLogin
():
return
results
for
search_string
in
[
search_params
]:
results
=
[]
items
=
{
'
Season
'
:
[],
'
Episode
'
:
[],
'
RSS
'
:
[]}
for
mode
in
search_strings
.
keys
():
if
mode
!=
'
RSS
'
:
logger
.
log
(
u
"
Search Mode: %s
"
%
mode
,
logger
.
DEBUG
)
for
search_string
in
search_strings
[
mode
]:
if
mode
!=
'
RSS
'
:
logger
.
log
(
u
"
Search string: %s
"
%
search_string
,
logger
.
DEBUG
)
...
...
@@ -174,8 +177,13 @@ class SCCProvider(generic.TorrentProvider):
if
mode
!=
'
RSS
'
:
logger
.
log
(
u
"
Found result: %s
"
%
title
,
logger
.
DEBUG
)
results
.
append
(
item
)
#FIX ME SORTING
items
[
mode
].
append
(
item
)
#For each search mode sort all the items by seeders if available
items
[
mode
].
sort
(
key
=
lambda
tup
:
tup
[
3
],
reverse
=
True
)
results
+=
items
[
mode
]
return
results
def
findPropers
(
self
,
search_date
=
datetime
.
datetime
.
today
()):
...
...
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