Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SickRage
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
Commits
ead51002
Commit
ead51002
authored
Jun 17, 2015
by
Dustyn Gibson
Browse files
Options
Downloads
Patches
Plain Diff
Fixes /SiCKRAGETV/sickrage-issues#1814 Fixes /SiCKRAGETV/sickrage-issues#1743
parent
810b8211
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
sickbeard/providers/kat.py
+8
-1
8 additions, 1 deletion
sickbeard/providers/kat.py
sickbeard/providers/omgwtfnzbs.py
+8
-0
8 additions, 0 deletions
sickbeard/providers/omgwtfnzbs.py
with
16 additions
and
1 deletion
sickbeard/providers/kat.py
+
8
−
1
View file @
ead51002
...
@@ -214,6 +214,13 @@ class KATProvider(generic.TorrentProvider):
...
@@ -214,6 +214,13 @@ class KATProvider(generic.TorrentProvider):
return
[
search_string
]
return
[
search_string
]
def
_get_size
(
self
,
item
):
title
,
url
,
id
,
seeders
,
leechers
,
size
,
pubdate
=
item
if
not
size
:
return
-
1
return
size
def
_doSearch
(
self
,
search_params
,
search_mode
=
'
eponly
'
,
epcount
=
0
,
age
=
0
,
epObj
=
None
):
def
_doSearch
(
self
,
search_params
,
search_mode
=
'
eponly
'
,
epcount
=
0
,
age
=
0
,
epObj
=
None
):
results
=
[]
results
=
[]
...
@@ -243,7 +250,7 @@ class KATProvider(generic.TorrentProvider):
...
@@ -243,7 +250,7 @@ class KATProvider(generic.TorrentProvider):
seeders
=
int
(
item
[
'
torrent_seeds
'
])
seeders
=
int
(
item
[
'
torrent_seeds
'
])
leechers
=
int
(
item
[
'
torrent_peers
'
])
leechers
=
int
(
item
[
'
torrent_peers
'
])
size
=
int
(
item
[
'
torrent_contentlength
'
])
size
=
int
(
item
[
'
torrent_contentlength
'
])
except
(
AttributeError
,
TypeError
):
except
(
AttributeError
,
TypeError
,
KeyError
):
continue
continue
if
mode
!=
'
RSS
'
and
(
seeders
<
self
.
minseed
or
leechers
<
self
.
minleech
):
if
mode
!=
'
RSS
'
and
(
seeders
<
self
.
minseed
or
leechers
<
self
.
minleech
):
...
...
This diff is collapsed.
Click to expand it.
sickbeard/providers/omgwtfnzbs.py
+
8
−
0
View file @
ead51002
...
@@ -101,6 +101,14 @@ class OmgwtfnzbsProvider(generic.NZBProvider):
...
@@ -101,6 +101,14 @@ class OmgwtfnzbsProvider(generic.NZBProvider):
def
_get_title_and_url
(
self
,
item
):
def
_get_title_and_url
(
self
,
item
):
return
(
item
[
'
release
'
],
item
[
'
getnzb
'
])
return
(
item
[
'
release
'
],
item
[
'
getnzb
'
])
def
_get_size
(
self
,
item
):
try
:
size
=
int
(
item
[
'
sizebytes
'
])
except
(
ValueError
,
TypeError
,
AttributeError
,
KeyError
):
return
-
1
return
size
def
_doSearch
(
self
,
search
,
search_mode
=
'
eponly
'
,
epcount
=
0
,
retention
=
0
,
epObj
=
None
):
def
_doSearch
(
self
,
search
,
search_mode
=
'
eponly
'
,
epcount
=
0
,
retention
=
0
,
epObj
=
None
):
self
.
_checkAuth
()
self
.
_checkAuth
()
...
...
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