[imgur] match gallery/album/image URLs with title slugs (#5593)

This commit is contained in:
Mike Fährmann
2024-05-16 01:05:53 +02:00
parent 07d962d60a
commit 7f1ed909d5
2 changed files with 24 additions and 3 deletions

View File

@@ -86,6 +86,13 @@ __tests__ = (
"#exception": exception.HttpError,
},
{
"#url" : "https://imgur.com/test-21yMxCS",
"#comment" : "slug",
"#category": ("", "imgur", "image"),
"#class" : imgur.ImgurImageExtractor,
},
{
"#url" : "https://m.imgur.com/r/Celebs/iHJ7tsM",
"#category": ("", "imgur", "image"),
@@ -258,6 +265,13 @@ __tests__ = (
"#exception": exception.HttpError,
},
{
"#url" : "https://imgur.com/a/138-TcBmP",
"#comment" : "slug",
"#category": ("", "imgur", "album"),
"#class" : imgur.ImgurAlbumExtractor,
},
{
"#url" : "https://www.imgur.com/a/TcBmP",
"#comment" : "www",
@@ -294,6 +308,13 @@ __tests__ = (
"#exception": exception.HttpError,
},
{
"#url" : "https://imgur.com/gallery/guy-gets-out-of-car-during-long-traffic-jam-to-pet-dog-zf2fIms",
"#comment" : "slug",
"#category": ("", "imgur", "gallery"),
"#class" : imgur.ImgurGalleryExtractor,
},
{
"#url" : "https://imgur.com/t/unmuted/26sEhNr",
"#category": ("", "imgur", "gallery"),