[imgbb] improve dbe5891d
This commit is contained in:
@@ -71,6 +71,37 @@ __tests__ = (
|
||||
"#exception": exception.HttpError,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://ibb.co/album/jyYWqL",
|
||||
"#class" : imgbb.ImgbbAlbumExtractor,
|
||||
"#results" : "https://i.ibb.co/1J4mTWzQ/test.png",
|
||||
|
||||
"extension": "png",
|
||||
"filename" : "test",
|
||||
"height" : 32,
|
||||
"id" : "bRGKX9bm",
|
||||
"mime" : "image/png",
|
||||
"name" : "test.png",
|
||||
"size" : 182,
|
||||
"title" : "test",
|
||||
"url" : "https://i.ibb.co/1J4mTWzQ/test.png",
|
||||
"width" : 64,
|
||||
"album" : {
|
||||
"count" : 1,
|
||||
"id" : "jyYWqL",
|
||||
"title" : "test-テスト-\"&> Album",
|
||||
"url" : "https://ibb.co/album/jyYWqL",
|
||||
"description": """test-テスト-"&>\nDescription""",
|
||||
},
|
||||
"user" : {
|
||||
"id" : "nrFBYw",
|
||||
"name" : "Gdldev",
|
||||
"url" : "https://gdldev.imgbb.com/",
|
||||
"url_albums": "https://gdldev.imgbb.com/albums",
|
||||
"username" : "gdldev",
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://folkie.imgbb.com",
|
||||
"#class" : imgbb.ImgbbUserExtractor,
|
||||
@@ -87,6 +118,30 @@ __tests__ = (
|
||||
"#exception": exception.AuthRequired,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://gdldev.imgbb.com/",
|
||||
"#class" : imgbb.ImgbbUserExtractor,
|
||||
"#results" : "https://i.ibb.co/1J4mTWzQ/test.png",
|
||||
|
||||
"extension": "png",
|
||||
"filename" : "test",
|
||||
"height" : 32,
|
||||
"id" : "bRGKX9bm",
|
||||
"mime" : "image/png",
|
||||
"name" : "test.png",
|
||||
"size" : 182,
|
||||
"title" : "test",
|
||||
"url" : "https://i.ibb.co/1J4mTWzQ/test.png",
|
||||
"width" : 64,
|
||||
"user" : {
|
||||
"id" : "nrFBYw",
|
||||
"name" : "Gdldev",
|
||||
"url" : "https://gdldev.imgbb.com/",
|
||||
"url_albums": "https://gdldev.imgbb.com/albums",
|
||||
"username" : "gdldev",
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://ibb.co/fUqh5b",
|
||||
"#class" : imgbb.ImgbbImageExtractor,
|
||||
@@ -115,4 +170,32 @@ __tests__ = (
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://ibb.co/bRGKX9bm",
|
||||
"#class" : imgbb.ImgbbImageExtractor,
|
||||
"#auth" : False,
|
||||
"#results" : "https://i.ibb.co/1J4mTWzQ/test.png",
|
||||
"#sha1_content": "0c8768055e4e20e7c7259608b67799171b691140",
|
||||
|
||||
"date" : "dt:2025-07-30 20:05:06",
|
||||
"extension": "png",
|
||||
"filename" : "test",
|
||||
"height" : 32,
|
||||
"id" : "bRGKX9bm",
|
||||
"title" : "test",
|
||||
"url" : "https://i.ibb.co/1J4mTWzQ/test.png",
|
||||
"width" : 64,
|
||||
"album" : {
|
||||
"id" : "jyYWqL",
|
||||
"title": "test-テスト-\"&> Album",
|
||||
},
|
||||
"user" : {
|
||||
"id" : "nrFBYw",
|
||||
"name" : "Gdldev",
|
||||
"url" : "https://gdldev.imgbb.com/",
|
||||
"url_albums": "https://gdldev.imgbb.com/albums",
|
||||
"username" : "gdldev",
|
||||
},
|
||||
},
|
||||
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user