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
c148dc6c
Commit
c148dc6c
authored
9 years ago
by
labrys
Browse files
Options
Downloads
Patches
Plain Diff
Fix file size conversion for limetorrents
parent
ffcb7e87
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/limetorrents.py
+5
-2
5 additions, 2 deletions
sickbeard/providers/limetorrents.py
with
5 additions
and
2 deletions
sickbeard/providers/limetorrents.py
+
5
−
2
View file @
c148dc6c
...
@@ -21,7 +21,7 @@ from bs4 import BeautifulSoup
...
@@ -21,7 +21,7 @@ from bs4 import BeautifulSoup
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
try_int
from
sickrage.helper.common
import
try_int
,
convert_size
from
sickrage.providers.torrent.TorrentProvider
import
TorrentProvider
from
sickrage.providers.torrent.TorrentProvider
import
TorrentProvider
...
@@ -97,7 +97,10 @@ class LimeTorrentsProvider(TorrentProvider): # pylint: disable=too-many-instance
...
@@ -97,7 +97,10 @@ class LimeTorrentsProvider(TorrentProvider): # pylint: disable=too-many-instance
description
=
item
.
find
(
'
description
'
).
text
.
partition
(
'
,
'
)
description
=
item
.
find
(
'
description
'
).
text
.
partition
(
'
,
'
)
seeders
=
try_int
(
description
[
0
].
lstrip
(
'
Seeds:
'
).
strip
())
seeders
=
try_int
(
description
[
0
].
lstrip
(
'
Seeds:
'
).
strip
())
leechers
=
try_int
(
description
[
2
].
lstrip
(
'
Leechers
'
).
strip
())
leechers
=
try_int
(
description
[
2
].
lstrip
(
'
Leechers
'
).
strip
())
size
=
try_int
(
item
.
find
(
'
size
'
).
text
,
-
1
)
torrent_size
=
item
.
find
(
'
size
'
).
text
size
=
convert_size
(
torrent_size
)
or
-
1
except
(
AttributeError
,
TypeError
,
KeyError
,
ValueError
):
except
(
AttributeError
,
TypeError
,
KeyError
,
ValueError
):
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