Fix jpg extension for python 3.7 and below
This commit is contained in:
parent
4c93497036
commit
7bbd822e04
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue