Fix whitespace.

This commit is contained in:
voussoir 2022-08-03 18:38:30 -07:00
parent d040c65af6
commit eb4c48cbca
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -298,10 +298,12 @@ def handle_vidme(url, customname=None):
pagedata = pagedata[0]
pagedata = pagedata.split('content="')[1].split('"')[0]
pagedata = pagedata.replace('&', '&')
headers = {'Referer': 'https://vid.me/',
'Range':'bytes=0-',
'Host':'d1wst0behutosd.cloudfront.net',
'Cache-Control':'max-age=0'}
headers = {
'Referer': 'https://vid.me/',
'Range':'bytes=0-',
'Host':'d1wst0behutosd.cloudfront.net',
'Cache-Control':'max-age=0'
}
return download_file(pagedata, customname, headers=headers)
@ -387,7 +389,7 @@ HANDLERS = {
'youtube.com': handle_youtube,
'youtu.be': handle_youtube,
'twitter.com': handle_twitter
}
}
def handle_master(url, customname=None):
print('Handling %s' % url)