[sankaku] fix potential infinite loop (#7155)

https://github.com/mikf/gallery-dl/issues/7155#issuecomment-2723019761
This commit is contained in:
Mike Fährmann
2025-03-14 08:24:40 +01:00
parent cd1ddb0a67
commit f395a3ec79
2 changed files with 81 additions and 4 deletions

View File

@@ -312,6 +312,80 @@ __tests__ = (
],
},
{
"#url" : "https://www.sankakucomplex.com/posts/26MPkn6JRKx",
"#comment" : "each tag is tripled, wrong 'total' count in /tags API",
"#category": ("booru", "sankaku", "post"),
"#class" : sankaku.SankakuPostExtractor,
"#options" : {"tags": True},
"id": "26MPkn6JRKx",
"md5": "a115c0cfbad8e915f046a72973bbd47e",
"total_tags": 39,
"tags": [
"tengen_toppa_gurren-lagann",
"tengen_toppa_gurren-lagann",
"tengen_toppa_gurren-lagann",
"yoko_littner",
"yoko_littner",
"yoko_littner",
"high_resolution",
"high_resolution",
"high_resolution",
"bangs",
"bangs",
"bangs",
"female",
"female",
"female",
"golden_eyes",
"golden_eyes",
"golden_eyes",
"long_hair",
"long_hair",
"long_hair",
"ponytail",
"ponytail",
"ponytail",
"red_hair",
"red_hair",
"red_hair",
"solo",
"solo",
"solo",
"tied_hair",
"tied_hair",
"tied_hair",
"yellow_eyes",
"yellow_eyes",
"yellow_eyes",
"potential_duplicate",
"potential_duplicate",
"potential_duplicate",
],
"tags_copyright": [
"tengen_toppa_gurren-lagann",
],
"tags_character": [
"yoko_littner",
],
"tags_general": [
"tied_hair",
"bangs",
"ponytail",
"female",
"long_hair",
"yellow_eyes",
"red_hair",
"golden_eyes",
"solo",
"high_resolution",
],
"tags_meta": [
"potential_duplicate",
],
},
{
"#url" : "https://sankaku.app/posts/VAr2mjLJ2av",
"#comment" : "notes (#5073)",