Split long useragent string.

This commit is contained in:
voussoir 2021-08-13 23:03:59 -07:00
parent 6442e8e40c
commit 93605e2577
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -16,8 +16,13 @@ log = vlogging.getLogger(__name__, 'downloady')
warnings.simplefilter('ignore')
USERAGENT = '''
'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/42.0.2311.152 Safari/537.36'
'''.strip().replace('\n', ' ')
HEADERS = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36'
'User-Agent': USERAGENT,
}
FILENAME_BADCHARS = '*?"<>|\r\n'