1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-26 04:32:51 +01:00
gallery-dl/test/results/mangadex.py

117 lines
3.4 KiB
Python
Raw Normal View History

2023-09-10 14:45:01 +02:00
# -*- 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 mangadex
from gallery_dl import exception
import datetime
__tests__ = (
{
"#url" : "https://mangadex.org/chapter/f946ac53-0b71-4b5d-aeb2-7931b13c4aaa",
"#category": ("", "mangadex", "chapter"),
"#class" : mangadex.MangadexChapterExtractor,
"#sha1_metadata": "e86128a79ebe7201b648f1caa828496a2878dc8f",
},
{
"#url" : "https://mangadex.org/chapter/61a88817-9c29-4281-bdf1-77b3c1be9831",
"#comment" : "oneshot",
"#category": ("", "mangadex", "chapter"),
"#class" : mangadex.MangadexChapterExtractor,
"#count" : 64,
"#sha1_metadata": "d11ed057a919854696853362be35fc0ba7dded4c",
},
{
"#url" : "https://mangadex.org/chapter/74149a55-e7c4-44ea-8a37-98e879c1096f",
"#comment" : "MANGA Plus (#1154)",
"#category": ("", "mangadex", "chapter"),
"#class" : mangadex.MangadexChapterExtractor,
"#exception": exception.StopExtraction,
},
{
"#url" : "https://mangadex.org/chapter/364728a4-6909-4164-9eea-6b56354f7c78",
"#comment" : "'externalUrl', but still downloadable / 404 (#2503)",
"#category": ("", "mangadex", "chapter"),
"#class" : mangadex.MangadexChapterExtractor,
"#count" : 0,
},
{
"#url" : "https://mangadex.org/title/f90c4398-8aad-4f51-8a1f-024ca09fdcbc",
"#comment" : "mutliple values for 'lang' (#4093)",
"#category": ("", "mangadex", "manga"),
"#class" : mangadex.MangadexMangaExtractor,
"#count" : ">= 5",
"manga" : "Souten no Koumori",
"manga_id" : "f90c4398-8aad-4f51-8a1f-024ca09fdcbc",
"title" : r"re:One[Ss]hot",
"volume" : 0,
"chapter" : 0,
"chapter_minor": "",
"chapter_id" : str,
"date" : datetime.datetime,
"lang" : str,
"language" : str,
"artist" : ["Arakawa Hiromu"],
"author" : ["Arakawa Hiromu"],
"status" : "completed",
"tags" : [
"Oneshot",
"Historical",
"Action",
"Martial Arts",
"Drama",
"Tragedy",
],
},
{
"#url" : "https://mangadex.org/title/f90c4398-8aad-4f51-8a1f-024ca09fdcbc",
"#comment" : "mutliple values for 'lang' (#4093)",
"#category": ("", "mangadex", "manga"),
"#class" : mangadex.MangadexMangaExtractor,
"#options" : {"lang": "fr,it"},
"#count" : 2,
"manga" : "Souten no Koumori",
"lang" : r"re:fr|it",
"language": r"re:French|Italian",
},
{
"#url" : "https://mangadex.cc/manga/d0c88e3b-ea64-4e07-9841-c1d2ac982f4a/",
"#category": ("", "mangadex", "manga"),
"#class" : mangadex.MangadexMangaExtractor,
"#options" : {"lang": "en"},
"#count" : ">= 100",
},
{
"#url" : "https://mangadex.org/title/7c1e2742-a086-4fd3-a3be-701fd6cf0be9",
"#category": ("", "mangadex", "manga"),
"#class" : mangadex.MangadexMangaExtractor,
"#count" : 1,
},
{
"#url" : "https://mangadex.org/title/584ef094-b2ab-40ce-962c-bce341fb9d10",
"#category": ("", "mangadex", "manga"),
"#class" : mangadex.MangadexMangaExtractor,
"#count" : ">= 20",
},
{
"#url" : "https://mangadex.org/title/feed",
"#category": ("", "mangadex", "feed"),
"#class" : mangadex.MangadexFeedExtractor,
},
)