fix double extensions?

feature-unify_handlers
Tomáš Mládek 2018-01-31 12:34:39 +01:00 committed by Tomáš Mládek
parent 97a0f13d17
commit e5fcb50e70
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ def download_ydl(urls):
def download_raw(url):
ext = ''
if 'api.telegram.org' in url and 'animation' in url:
if 'api.telegram.org' in url and 'animation' in url and "mp4" not in url:
ext = '.mp4'
local_filename = OUT_DIR + '/' + date() + '__' + url.split('/')[-1] + ext
r = requests.get(url, stream=True)