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 Imgur albums can contain several images, which need to be scraped from the
landing page. landing page.
""" """
pattern = re.compile(r'https?://(w+\.)?(m\.)?imgur\.com/a/[^.]+$') pattern = re.compile(r'https?://(w+\.)?(m\.)?imgur\.com/a(lbum)?/[^.]+$')
@staticmethod @staticmethod
def get_mimetype(url): def get_mimetype(url):