mirror of
https://github.com/soimort/you-get.git
synced 2025-03-14 20:04:00 +03:00
Merge branch 'develop' of https://github.com/lilydjwg/you-get into lilydjwg-develop
This commit is contained in:
commit
81d2a1daed
@ -16,6 +16,11 @@ def qq_download_by_vid(vid, title, output_dir='.', merge=True, info_only=False):
|
||||
download_urls([url], title, ext, size, output_dir=output_dir, merge=merge)
|
||||
|
||||
def qq_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
|
||||
if 'iframe/player.html' in url:
|
||||
vid = match1(url, r'\bvid=(\w+)')
|
||||
# for embedded URLs; don't know what the title is
|
||||
title = vid
|
||||
else:
|
||||
content = get_html(url)
|
||||
vid = match1(content, r'vid\s*:\s*"\s*([^"]+)"')
|
||||
title = match1(content, r'title\s*:\s*"\s*([^"]+)"')
|
||||
|
Loading…
x
Reference in New Issue
Block a user