[mangadex] apply 'lang' only to chapter results (#6372)

This commit is contained in:
Mike Fährmann
2024-10-26 17:49:37 +02:00
parent 7e43c9292d
commit cc07c81063
3 changed files with 26 additions and 16 deletions

View File

@@ -81,8 +81,8 @@ __tests__ = (
"#count" : 2,
"manga" : "Souten no Koumori",
"lang" : r"re:fr|it",
"language": r"re:French|Italian",
"lang" : {"fr", "it"},
"language": {"French", "Italian"},
},
{
@@ -134,8 +134,8 @@ __tests__ = (
"#category": ("", "mangadex", "list-feed"),
"#class" : mangadex.MangadexListExtractor,
"#urls" : (
"https://mangadex.org/chapter/c765d6d5-5712-4360-be0b-0c8e0914fc94",
"https://mangadex.org/chapter/fa8a695d-260f-4dcc-95a3-1f30e66d6571",
"https://mangadex.org/chapter/c765d6d5-5712-4360-be0b-0c8e0914fc94",
"https://mangadex.org/chapter/788766b9-41c6-422e-97ba-552f03ba9655",
),
},
@@ -157,6 +157,7 @@ __tests__ = (
"#url" : "https://mangadex.org/author/254efca2-0ac0-432c-a3a3-55b7e207e87d/flipflops",
"#class" : mangadex.MangadexAuthorExtractor,
"#pattern" : mangadex.MangadexMangaExtractor.pattern,
"#options" : {"lang": "en"},
"#count" : ">= 15",
},