Tweaked regex.

This commit is contained in:
Michael Lazar
2016-07-11 18:02:30 -07:00
parent 2ebc9552c8
commit 47b9835ccc

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):