Private GIT

Skip to content
Snippets Groups Projects
Commit 7c87fc88 authored by labrys's avatar labrys
Browse files

Fix file size conversion for strike

parent 82a67a22
No related tags found
No related merge requests found
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
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
...@@ -58,7 +59,8 @@ class STRIKEProvider(TorrentProvider): ...@@ -58,7 +59,8 @@ class STRIKEProvider(TorrentProvider):
seeders = ('seeds' in item and item['seeds']) or 0 seeders = ('seeds' in item and item['seeds']) or 0
leechers = ('leeches' in item and item['leeches']) or 0 leechers = ('leeches' in item and item['leeches']) or 0
title = ('torrent_title' in item and item['torrent_title']) or '' title = ('torrent_title' in item and item['torrent_title']) or ''
size = ('size' in item and item['size']) or 0 torrent_size = ('size' in item and item['size'])
size = convert_size(torrent_size) or -1
download_url = ('magnet_uri' in item and item['magnet_uri']) or '' download_url = ('magnet_uri' in item and item['magnet_uri']) or ''
if not all([title, download_url]): if not all([title, download_url]):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment