From 47b9835ccc5ac2c851c07c0348a54a73a1b05008 Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Mon, 11 Jul 2016 18:02:30 -0700 Subject: [PATCH] Tweaked regex. --- rtv/mime_handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtv/mime_handlers.py b/rtv/mime_handlers.py index 470267c..9900ab2 100644 --- a/rtv/mime_handlers.py +++ b/rtv/mime_handlers.py @@ -162,7 +162,7 @@ class ImgurAlbumMIMEParser(BaseMIMEParser): Imgur albums can contain several images, which need to be scraped from the landing page. """ - pattern = re.compile(r'https?://(w+\.)?(m\.)?imgur\.com/a/[^.]+$') + pattern = re.compile(r'https?://(w+\.)?(m\.)?imgur\.com/a(lbum)?/[^.]+$') @staticmethod def get_mimetype(url):