Private GIT

Skip to content
Snippets Groups Projects
Commit 82ed2a0d authored by labrys's avatar labrys
Browse files

Fix file size conversion for torrentproject

parent 0042f60b
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ from urllib import quote_plus
from sickbeard import logger
from sickbeard import tvcache
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
......@@ -74,7 +74,8 @@ class TORRENTPROJECTProvider(TorrentProvider):
continue
t_hash = torrents[i]["torrent_hash"]
size = int(torrents[i]["torrent_size"])
torrent_size = torrents[i]["torrent_size"]
size = convert_size(torrent_size) or -1
try:
assert seeders < 10
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment