Skip to content

Commit

Permalink
Quick fix for issue #47
Browse files Browse the repository at this point in the history
For some reason the sizes list is empty with the mirror
"www.piratefly.com"
  • Loading branch information
rnhmjoj committed Apr 25, 2015
1 parent d094a97 commit 6417770
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pirate-get.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6417770

Please sign in to comment.