[kemonoparty:discord] update server & channel metadata (#7569)

to match the Discord Extractors' names

- rename
    server       -> server_id
    channel      -> channel_id
    channel_name -> channel
- add
    server
    channel_nsfw
    channel_type
    channel_topic
    parent_id
This commit is contained in:
Mike Fährmann
2025-05-24 17:57:12 +02:00
parent ed9c960bb9
commit 1f869c2786
2 changed files with 77 additions and 49 deletions

View File

@@ -517,8 +517,13 @@ __tests__ = (
"#class" : kemonoparty.KemonopartyDiscordExtractor,
"#count" : 4,
"channel" : "608504710906904576",
"channel_name": "finish-work",
"channel" : "finish-work",
"channel_id" : "608504710906904576",
"channel_nsfw" : False,
"channel_topic": None,
"channel_type" : 0,
"server" : "ABFMMD NSFW Server",
"server_id" : "488668827274444803",
},
{
@@ -527,18 +532,13 @@ __tests__ = (
"#class" : kemonoparty.KemonopartyDiscordExtractor,
"#count" : 4,
"channel" : "608504710906904576",
"channel_name": "finish-work",
},
{
"#url" : "https://kemono.su/discord/server/488668827274444803#finish-work",
"#category": ("", "kemonoparty", "discord"),
"#class" : kemonoparty.KemonopartyDiscordExtractor,
"#count" : 4,
"channel" : "608504710906904576",
"channel_name": "finish-work",
"channel" : "finish-work",
"channel_id" : "608504710906904576",
"channel_nsfw" : False,
"channel_topic": None,
"channel_type" : 0,
"server" : "ABFMMD NSFW Server",
"server_id" : "488668827274444803",
},
{
@@ -547,21 +547,31 @@ __tests__ = (
"#class" : kemonoparty.KemonopartyDiscordExtractor,
"#count" : 4,
"channel" : "608504710906904576",
"channel_name": "finish-work",
"date" : "type:datetime",
"channel" : "finish-work",
"channel_id" : "608504710906904576",
"channel_nsfw" : False,
"channel_topic": None,
"channel_type" : 0,
"server" : "ABFMMD NSFW Server",
"server_id" : "488668827274444803",
"date" : "type:datetime",
},
{
"#url" : "https://kemono.su/discord/server/818188637329031199#818343747275456522",
"#url" : "https://kemono.su/discord/server/818188637329031199/818343747275456522",
"#comment" : "pagination",
"#category": ("", "kemonoparty", "discord"),
"#class" : kemonoparty.KemonopartyDiscordExtractor,
"#range" : "1-250",
"#count" : 250,
"channel" : "818343747275456522",
"channel_name": "wraith-sfw-gallery",
"channel" : "wraith-sfw-gallery",
"channel_id" : "818343747275456522",
"channel_nsfw" : False,
"channel_type" : 0,
"channel_topic": None,
"server" : "The Ghost Zone",
"server_id" : "818188637329031199",
},
{
@@ -571,7 +581,10 @@ __tests__ = (
"#pattern" : r"https://kemono\.su/data/(e3/77/e377e3525164559484ace2e64425b0cec1db08.*\.png|51/45/51453640a5e0a4d23fbf57fb85390f9c5ec154.*\.gif)",
"#count" : ">= 2",
"hash": r"re:e377e3525164559484ace2e64425b0cec1db08|51453640a5e0a4d23fbf57fb85390f9c5ec154",
"hash": {
"51453640a5e0a4d23fbf57fb85390f9c5ec15459af0bb5ba65a83781056b68e2",
"e377e3525164559484ace2e64425b0cec1db0863b9398682b90a9af006d87758",
},
},
{