Tweaked regex.

This commit is contained in:
Michael Lazar committed 2016-07-11 18:02:30 -07:00
1 parent 2ebc9552c8
commit 47b9835ccc
1 file changed
+1 -1
+1 -1
View File
@@ -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):