mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 08:43:58 +03:00
1248 surround quality by dots to avoid issues with having q value in uri
This commit is contained in:
parent
50c911507b
commit
4793bc30d0
@ -10,7 +10,7 @@ def get_video_info(url):
|
|||||||
title = r1(r'<div class="vv_summary">(.[^>]+?)</div', video_page)
|
title = r1(r'<div class="vv_summary">(.[^>]+?)</div', video_page)
|
||||||
sources = re.findall(r'<source src=\"(.[^>]+?)"', video_page)
|
sources = re.findall(r'<source src=\"(.[^>]+?)"', video_page)
|
||||||
|
|
||||||
for quality in ['1080', '720', '480', '360', '240']:
|
for quality in ['.1080.', '.720.', '.480.', '.360.', '.240.']:
|
||||||
for source in sources:
|
for source in sources:
|
||||||
if source.find(quality) != -1:
|
if source.find(quality) != -1:
|
||||||
url = source
|
url = source
|
||||||
|
Loading…
Reference in New Issue
Block a user