1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-10 10:04:21 +01:00

Quick fix for issue #47

For some reason the sizes list is empty with the mirror
"www.piratefly.com"
This commit is contained in:
rnhmjoj 2015-04-26 01:43:51 +02:00
parent d094a973a6
commit 6417770108

View File

@ -353,8 +353,7 @@ def print_search_results(mags, sizes, uploaded, local):
content = [m, torrent_name[:columns]] content = [m, torrent_name[:columns]]
else: else:
no_seeders, no_leechers = map(int, magnet[1:]) no_seeders, no_leechers = map(int, magnet[1:])
size = float(sizes[m][0]) size, unit = (float(sizes[m][0]), sizes[m][1]) if sizes else (0, '???')
unit = sizes[m][1]
date = uploaded[m] date = uploaded[m]
# compute the S/L ratio (Higher is better) # compute the S/L ratio (Higher is better)