mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
6663715f75
commit
77a9964fac
@ -520,7 +520,6 @@ def get_download_filename(url, cookie_file=None):
|
||||
br.set_cookiejar(cj)
|
||||
|
||||
with closing(br.open(url)) as r:
|
||||
filename = ''
|
||||
disposition = r.info().get('Content-disposition', '')
|
||||
for p in disposition.split(';'):
|
||||
if 'filename' in p:
|
||||
|
Loading…
x
Reference in New Issue
Block a user