[imgur] match gallery/album/image URLs with title slugs (#5593)
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user