From ce13c0c53c9b7112d1317585b4dd86065e395d03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Koch-Kramer?= Date: Wed, 8 Nov 2017 13:45:29 +0100 Subject: [PATCH] Corrected file extension on videos from stories Closes #54. --- instaloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instaloader.py b/instaloader.py index 79c7420..48e950b 100755 --- a/instaloader.py +++ b/instaloader.py @@ -701,7 +701,7 @@ class Instaloader: filename_suffix: Optional[str] = None) -> bool: """Downloads and saves picture with given url under given directory with given timestamp. Returns true, if file was actually downloaded, i.e. updated.""" - urlmatch = re.search('\\.[a-z]*\\?', url) + urlmatch = re.search('\\.[a-z0-9]*\\?', url) file_extension = url[-3:] if urlmatch is None else urlmatch.group(0)[1:-1] if filename_suffix is not None: filename += '_' + filename_suffix