Fix jpg extension for python 3.7 and below

This commit is contained in:
Magnus Walbeck 2021-01-30 15:49:02 +01:00
parent 4c93497036
commit 7bbd822e04
Signed by: mwalbeck
GPG key ID: CCB78CFF3F950769

View file

@ -304,6 +304,9 @@ def get_extenstion(url):
pattern = r"[.][\w]+$"
extension = re.search(pattern, url).group(0)
if extension == ".jpe":
extension = ".jpg"
return extension