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
8fae56eb
Commit
8fae56eb
authored
Jan 7, 2016
by
labrys
Browse files
Options
Downloads
Patches
Plain Diff
Fix file size conversion for t411
parent
7c87fc88
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sickbeard/providers/t411.py
+3
-1
3 additions, 1 deletion
sickbeard/providers/t411.py
with
3 additions
and
1 deletion
sickbeard/providers/t411.py
+
3
−
1
View file @
8fae56eb
...
@@ -24,6 +24,7 @@ from requests.auth import AuthBase
...
@@ -24,6 +24,7 @@ from requests.auth import AuthBase
from
sickbeard
import
logger
from
sickbeard
import
logger
from
sickbeard
import
tvcache
from
sickbeard
import
tvcache
from
sickbeard.common
import
USER_AGENT
from
sickbeard.common
import
USER_AGENT
from
sickrage.helper.common
import
convert_size
from
sickrage.providers.torrent.TorrentProvider
import
TorrentProvider
from
sickrage.providers.torrent.TorrentProvider
import
TorrentProvider
...
@@ -123,10 +124,11 @@ class T411Provider(TorrentProvider):
...
@@ -123,10 +124,11 @@ class T411Provider(TorrentProvider):
if
not
all
([
title
,
download_url
]):
if
not
all
([
title
,
download_url
]):
continue
continue
size
=
int
(
torrent
[
'
size
'
])
seeders
=
int
(
torrent
[
'
seeders
'
])
seeders
=
int
(
torrent
[
'
seeders
'
])
leechers
=
int
(
torrent
[
'
leechers
'
])
leechers
=
int
(
torrent
[
'
leechers
'
])
verified
=
bool
(
torrent
[
'
isVerified
'
])
verified
=
bool
(
torrent
[
'
isVerified
'
])
torrent_size
=
torrent
[
'
size
'
]
size
=
convert_size
(
torrent_size
)
or
-
1
# Filter unseeded torrent
# Filter unseeded torrent
if
seeders
<
self
.
minseed
or
leechers
<
self
.
minleech
:
if
seeders
<
self
.
minseed
or
leechers
<
self
.
minleech
:
...
...
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