1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-10 10:04:21 +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):
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)