mirror of
https://github.com/vikstrous/pirate-get
synced 2025-01-09 09:59:51 +01:00
fix default category selection
This commit is contained in:
parent
687d144428
commit
ef18c3a688
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user