fix double extensions?
This commit is contained in:
parent
97a0f13d17
commit
e5fcb50e70
1 changed files with 1 additions and 1 deletions
2
robot.py
2
robot.py
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue