Fix whitespace.
This commit is contained in:
parent
d040c65af6
commit
eb4c48cbca
1 changed files with 7 additions and 5 deletions
|
@ -298,10 +298,12 @@ def handle_vidme(url, customname=None):
|
||||||
pagedata = pagedata[0]
|
pagedata = pagedata[0]
|
||||||
pagedata = pagedata.split('content="')[1].split('"')[0]
|
pagedata = pagedata.split('content="')[1].split('"')[0]
|
||||||
pagedata = pagedata.replace('&', '&')
|
pagedata = pagedata.replace('&', '&')
|
||||||
headers = {'Referer': 'https://vid.me/',
|
headers = {
|
||||||
|
'Referer': 'https://vid.me/',
|
||||||
'Range':'bytes=0-',
|
'Range':'bytes=0-',
|
||||||
'Host':'d1wst0behutosd.cloudfront.net',
|
'Host':'d1wst0behutosd.cloudfront.net',
|
||||||
'Cache-Control':'max-age=0'}
|
'Cache-Control':'max-age=0'
|
||||||
|
}
|
||||||
|
|
||||||
return download_file(pagedata, customname, headers=headers)
|
return download_file(pagedata, customname, headers=headers)
|
||||||
|
|
||||||
|
@ -387,7 +389,7 @@ HANDLERS = {
|
||||||
'youtube.com': handle_youtube,
|
'youtube.com': handle_youtube,
|
||||||
'youtu.be': handle_youtube,
|
'youtu.be': handle_youtube,
|
||||||
'twitter.com': handle_twitter
|
'twitter.com': handle_twitter
|
||||||
}
|
}
|
||||||
|
|
||||||
def handle_master(url, customname=None):
|
def handle_master(url, customname=None):
|
||||||
print('Handling %s' % url)
|
print('Handling %s' % url)
|
||||||
|
|
Loading…
Reference in a new issue