Tweaked regex.
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user