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
dec8d742
Commit
dec8d742
authored
9 years ago
by
labrys
Browse files
Options
Downloads
Patches
Plain Diff
Fix file size conversion for hd4free
parent
2c89cc58
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/hd4free.py
+4
-1
4 additions, 1 deletion
sickbeard/providers/hd4free.py
with
4 additions
and
1 deletion
sickbeard/providers/hd4free.py
+
4
−
1
View file @
dec8d742
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
from
urllib
import
urlencode
from
urllib
import
urlencode
from
sickbeard
import
logger
from
sickbeard
import
logger
from
sickbeard
import
tvcache
from
sickbeard
import
tvcache
from
sickrage.helper.common
import
convert_size
from
sickrage.providers.torrent.TorrentProvider
import
TorrentProvider
from
sickrage.providers.torrent.TorrentProvider
import
TorrentProvider
...
@@ -87,9 +88,11 @@ class HD4FREEProvider(TorrentProvider): # pylint: disable=too-many-instance-att
...
@@ -87,9 +88,11 @@ class HD4FREEProvider(TorrentProvider): # pylint: disable=too-many-instance-att
seeders
=
jdata
[
i
][
"
seeders
"
]
seeders
=
jdata
[
i
][
"
seeders
"
]
leechers
=
jdata
[
i
][
"
leechers
"
]
leechers
=
jdata
[
i
][
"
leechers
"
]
title
=
jdata
[
i
][
"
release_name
"
]
title
=
jdata
[
i
][
"
release_name
"
]
size
=
jdata
[
i
][
"
size
"
]
torrent_
size
=
jdata
[
i
][
"
size
"
]
download_url
=
jdata
[
i
][
"
download_url
"
]
download_url
=
jdata
[
i
][
"
download_url
"
]
size
=
convert_size
(
torrent_size
)
or
-
1
if
not
all
([
title
,
download_url
]):
if
not
all
([
title
,
download_url
]):
continue
continue
...
...
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