add imgflip.com mime parser
This commit is contained in:
@@ -417,6 +417,13 @@ class ImgtcMIMEParser(OpenGraphMIMEParser):
|
||||
pattern = re.compile(r'https?://(www\.)?imgtc\.com/w/[^.]+$')
|
||||
|
||||
|
||||
class ImgflipMIMEParser(OpenGraphMIMEParser):
|
||||
"""
|
||||
imgflip.com uses the Open Graph protocol
|
||||
"""
|
||||
pattern = re.compile(r'https?://(www\.)?imgflip\.com/i/[^.]+$')
|
||||
|
||||
|
||||
# Parsers should be listed in the order they will be checked
|
||||
parsers = [
|
||||
ClippitUserMIMEParser,
|
||||
@@ -434,5 +441,6 @@ parsers = [
|
||||
GifsMIMEParser,
|
||||
GiphyMIMEParser,
|
||||
ImgtcMIMEParser,
|
||||
ImgflipMIMEParser,
|
||||
GifvMIMEParser,
|
||||
BaseMIMEParser]
|
||||
|
||||
Reference in New Issue
Block a user