1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-25 12:24:20 +01:00

fix default category selection

This commit is contained in:
Viktor Stanchev 2015-03-23 18:03:00 -04:00
parent 687d144428
commit ef18c3a688

View File

@ -196,13 +196,13 @@ def remote(args, mirror):
for page in range(pages): for page in range(pages):
if args.browse: if args.browse:
path = '/browse/' path = '/browse/'
if(category == '0'): if(category == 0):
category = '100' category = 100
path = '/browse/' + '/'.join(str(i) for i in ( path = '/browse/' + '/'.join(str(i) for i in (
category, page, sort)) category, page, sort))
elif len(args.search) == 0: elif len(args.search) == 0:
path = '/top/48h' if args.recent else '/top/' path = '/top/48h' if args.recent else '/top/'
if(category == '0'): if(category == 0):
path += 'all' path += 'all'
else: else:
path += str(category) path += str(category)