1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 12:12:34 +01:00
gallery-dl/test/results/imxto.py
2023-09-10 14:45:01 +02:00

66 lines
1.8 KiB
Python

# -*- coding: utf-8 -*-
# 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
# published by the Free Software Foundation.
from gallery_dl.extractor import imagehosts
from gallery_dl import exception
__tests__ = (
{
"#url" : "https://imx.to/i/1qdeva",
"#comment" : "new-style URL",
"#category": ("imagehost", "imxto", "image"),
"#class" : imagehosts.ImxtoImageExtractor,
"#sha1_url" : "ab2173088a6cdef631d7a47dec4a5da1c6a00130",
"#sha1_content": "0c8768055e4e20e7c7259608b67799171b691140",
"size" : 18,
"width" : 64,
"height": 32,
"hash" : "94d56c599223c59f3feb71ea603484d1",
},
{
"#url" : "https://imx.to/img-57a2050547b97.html",
"#comment" : "old-style URL",
"#category": ("imagehost", "imxto", "image"),
"#class" : imagehosts.ImxtoImageExtractor,
"#sha1_url" : "a83fe6ef1909a318c4d49fcf2caf62f36c3f9204",
"#sha1_content": "54592f2635674c25677c6872db3709d343cdf92f",
"size" : 5284,
"width" : 320,
"height": 160,
"hash" : "40da6aaa7b8c42b18ef74309bbc713fc",
},
{
"#url" : "https://img.yt/img-57a2050547b97.html",
"#comment" : "img.yt domain",
"#category": ("imagehost", "imxto", "image"),
"#class" : imagehosts.ImxtoImageExtractor,
"#sha1_url": "a83fe6ef1909a318c4d49fcf2caf62f36c3f9204",
},
{
"#url" : "https://imx.to/img-57a2050547b98.html",
"#category": ("imagehost", "imxto", "image"),
"#class" : imagehosts.ImxtoImageExtractor,
"#exception": exception.NotFoundError,
},
{
"#url" : "https://imx.to/g/ozdy",
"#category": ("imagehost", "imxto", "gallery"),
"#class" : imagehosts.ImxtoGalleryExtractor,
"#pattern" : imagehosts.ImxtoImageExtractor.pattern,
"#count" : 40,
"title": "untitled gallery",
},
)