1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 04:02:32 +01:00

[misskey] support 'misskey.design' (#4713)

This commit is contained in:
Mike Fährmann 2023-10-25 17:47:03 +02:00
parent 12a800ce21
commit 1042278bec
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
3 changed files with 63 additions and 0 deletions

View File

@ -1185,6 +1185,12 @@ Consider all sites to be NSFW unless otherwise known.
<td>Favorites, Followed Users, Images from Notes, User Profiles</td>
<td></td>
</tr>
<tr>
<td>Misskey.design</td>
<td>https://misskey.design/</td>
<td>Favorites, Followed Users, Images from Notes, User Profiles</td>
<td></td>
</tr>
<tr>
<td>Lesbian.energy</td>
<td>https://lesbian.energy/</td>

View File

@ -70,6 +70,10 @@ BASE_PATTERN = MisskeyExtractor.update({
"root": "https://misskey.io",
"pattern": r"misskey\.io",
},
"misskey.design": {
"root": "https://misskey.design",
"pattern": r"misskey\.design",
},
"lesbian.energy": {
"root": "https://lesbian.energy",
"pattern": r"lesbian\.energy",

View File

@ -0,0 +1,53 @@
# -*- 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 misskey
__tests__ = (
{
"#url" : "https://misskey.design/@machina_3D",
"#category": ("misskey", "misskey.design", "user"),
"#class" : misskey.MisskeyUserExtractor,
"#pattern" : r"https://file\.misskey\.design/post/[\w-]{36}\.\w+",
"#range" : "1-50",
"#count" : 50,
},
{
"#url" : "https://misskey.design/@blooddj@pawoo.net",
"#category": ("misskey", "misskey.design", "user"),
"#class" : misskey.MisskeyUserExtractor,
"#count" : 7,
},
{
"#url" : "https://misskey.design/@kujyo_t/following",
"#category": ("misskey", "misskey.design", "following"),
"#class" : misskey.MisskeyFollowingExtractor,
"#count" : ">= 250",
},
{
"#url" : "https://misskey.design/notes/9jva1danjc",
"#category": ("misskey", "misskey.design", "note"),
"#class" : misskey.MisskeyNoteExtractor,
"#urls" : "https://file.misskey.design/post/a8d27901-24e1-42ab-b8a6-1e09c98c6f55.webp",
},
{
"#url" : "https://misskey.design/my/favorites",
"#category": ("misskey", "misskey.design", "favorite"),
"#class" : misskey.MisskeyFavoriteExtractor,
},
{
"#url" : "https://misskey.design/api/i/favorites",
"#category": ("misskey", "misskey.design", "favorite"),
"#class" : misskey.MisskeyFavoriteExtractor,
},
)