mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 11:24:02 +03:00
Magisto: include video hash in filename
This commit is contained in:
parent
1db438ac5e
commit
74ae901c84
@ -9,7 +9,8 @@ def magisto_download(url, output_dir='.', merge=True, info_only=False):
|
||||
|
||||
title1 = r1(r'<meta name="twitter:title" content="([^"]*)"', html)
|
||||
title2 = r1(r'<meta name="twitter:description" content="([^"]*)"', html)
|
||||
title = "%s %s" % (title1, title2)
|
||||
video_hash = r1(r'http://www.magisto.com/video/([^/]+)', url)
|
||||
title = "%s %s - %s" % (title1, title2, video_hash)
|
||||
url = r1(r'<source type="[^"]+" src="([^"]*)"', html)
|
||||
type, ext, size = url_info(url)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user