From 131098684a4f36ce90407ae125a96ec6da842c80 Mon Sep 17 00:00:00 2001 From: Juan Manuel Alvarez Date: Tue, 25 Feb 2020 23:29:41 -0300 Subject: [PATCH] Fix image types for GIFs and PNGs. --- pypub/chapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypub/chapter.py b/pypub/chapter.py index e10bce6..2f91782 100644 --- a/pypub/chapter.py +++ b/pypub/chapter.py @@ -30,7 +30,7 @@ def __str__(self): def get_image_type(url): - for ending in ['jpg', 'jpeg', '.gif' '.png']: + for ending in ['jpg', 'jpeg', '.gif', '.png']: if url.endswith(ending): return ending else: