[redgifs] support 'i.redgifs.com' URLs (closes #2300)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright 2020-2021 Mike Fährmann
|
# Copyright 2020-2022 Mike Fährmann
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License version 2 as
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
@@ -106,8 +106,10 @@ class RedgifsSearchExtractor(RedgifsExtractor):
|
|||||||
class RedgifsImageExtractor(RedgifsExtractor):
|
class RedgifsImageExtractor(RedgifsExtractor):
|
||||||
"""Extractor for individual gifs from redgifs.com"""
|
"""Extractor for individual gifs from redgifs.com"""
|
||||||
subcategory = "image"
|
subcategory = "image"
|
||||||
pattern = (r"(?:https?://)?(?:www\.)?(?:redgifs\.com/(?:watch|ifr)"
|
pattern = (r"(?:https?://)?(?:"
|
||||||
r"|gifdeliverynetwork.com)/([A-Za-z]+)")
|
r"(?:www\.)?redgifs\.com/(?:watch|ifr)|"
|
||||||
|
r"(?:www\.)?gifdeliverynetwork\.com|"
|
||||||
|
r"i\.redgifs\.com/i)/([A-Za-z]+)")
|
||||||
test = (
|
test = (
|
||||||
("https://redgifs.com/watch/foolishforkedabyssiniancat", {
|
("https://redgifs.com/watch/foolishforkedabyssiniancat", {
|
||||||
"pattern": r"https://\w+\.redgifs\.com"
|
"pattern": r"https://\w+\.redgifs\.com"
|
||||||
@@ -115,6 +117,7 @@ class RedgifsImageExtractor(RedgifsExtractor):
|
|||||||
"content": "f6e03f1df9a2ff2a74092f53ee7580d2fb943533",
|
"content": "f6e03f1df9a2ff2a74092f53ee7580d2fb943533",
|
||||||
}),
|
}),
|
||||||
("https://redgifs.com/ifr/FoolishForkedAbyssiniancat"),
|
("https://redgifs.com/ifr/FoolishForkedAbyssiniancat"),
|
||||||
|
("https://i.redgifs.com/i/FoolishForkedAbyssiniancat"),
|
||||||
("https://www.gifdeliverynetwork.com/foolishforkedabyssiniancat"),
|
("https://www.gifdeliverynetwork.com/foolishforkedabyssiniancat"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user