mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 00:33:58 +03:00
support range in lrts
This commit is contained in:
parent
11af6e9cf4
commit
e1af6611b2
@ -41,6 +41,8 @@ def lrts_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
|
||||
}
|
||||
items = []
|
||||
for page in range(first_page, last_page):
|
||||
if page not in args.range:
|
||||
continue
|
||||
page_url = 'http://www.lrts.me/ajax/book/%s/%s/%s' % (book_no, page, page_size)
|
||||
response_content = json.loads(post_content(page_url, headers))
|
||||
if response_content['status'] != 'success':
|
||||
|
Loading…
Reference in New Issue
Block a user