mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
Fixed a bug: no parameters were getting passed to the youtube_download_by_id() function
This commit is contained in:
parent
e3e416c526
commit
89caa854f4
@ -8,7 +8,7 @@ from .youtube import youtube_download_by_id
|
||||
def khan_download(url, output_dir = '.', merge = True, info_only = False):
|
||||
page = get_html(url)
|
||||
id = page[page.find('src="https://www.youtube.com/embed/') + len('src="https://www.youtube.com/embed/') :page.find('?enablejsapi=1&wmode=transparent&modestbranding=1&rel=0&fs=1&showinfo=0')]
|
||||
youtube_download_by_id(id)
|
||||
youtube_download_by_id(id, output_dir=output_dir, merge=merge, info_only=info_only)
|
||||
|
||||
site_info = "khanacademy.org"
|
||||
download = khan_download
|
||||
|
Loading…
Reference in New Issue
Block a user