From ef18c3a688395d7c043122fecf04838583c77617 Mon Sep 17 00:00:00 2001 From: Viktor Stanchev Date: Mon, 23 Mar 2015 18:03:00 -0400 Subject: [PATCH] fix default category selection --- pirate-get.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pirate-get.py b/pirate-get.py index f02ed3d..79cc733 100755 --- a/pirate-get.py +++ b/pirate-get.py @@ -196,13 +196,13 @@ def remote(args, mirror): for page in range(pages): if args.browse: path = '/browse/' - if(category == '0'): - category = '100' + if(category == 0): + category = 100 path = '/browse/' + '/'.join(str(i) for i in ( category, page, sort)) elif len(args.search) == 0: path = '/top/48h' if args.recent else '/top/' - if(category == '0'): + if(category == 0): path += 'all' else: path += str(category)