From 6417770108815a7913344c0a168d835d6da0d364 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Sun, 26 Apr 2015 01:43:51 +0200 Subject: [PATCH] Quick fix for issue #47 For some reason the sizes list is empty with the mirror "www.piratefly.com" --- pirate-get.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pirate-get.py b/pirate-get.py index b5c66e7..9ce5365 100755 --- a/pirate-get.py +++ b/pirate-get.py @@ -353,8 +353,7 @@ def print_search_results(mags, sizes, uploaded, local): content = [m, torrent_name[:columns]] else: no_seeders, no_leechers = map(int, magnet[1:]) - size = float(sizes[m][0]) - unit = sizes[m][1] + size, unit = (float(sizes[m][0]), sizes[m][1]) if sizes else (0, '???') date = uploaded[m] # compute the S/L ratio (Higher is better)