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

[docs:supportedsites] include base categories without instances

This commit is contained in:
Mike Fährmann 2024-06-02 18:11:30 +02:00
parent 4d11cd9ffb
commit 035d882c6f
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 24 additions and 1 deletions

View File

@ -1272,6 +1272,16 @@ Consider all listed sites to potentially be NSFW.
<td>Required</td>
</tr>
<tr>
<td colspan="4"><strong>Nitter Instances</strong></td>
</tr>
<tr>
<td></td>
<td></td>
<td>Media Files, Replies, Search Results, Tweets</td>
<td></td>
</tr>
<tr>
<td colspan="4"><strong>Philomena Instances</strong></td>
</tr>
@ -1570,6 +1580,16 @@ Consider all listed sites to potentially be NSFW.
<td></td>
</tr>
<tr>
<td colspan="4"><strong>FoOlSlide Instances</strong></td>
</tr>
<tr>
<td></td>
<td></td>
<td>Chapters, Manga</td>
<td></td>
</tr>
<tr>
<td colspan="4"><strong>Mastodon Instances</strong></td>
</tr>

View File

@ -465,7 +465,7 @@ def build_extractor_list():
"""Generate a sorted list of lists of extractor classes"""
categories = collections.defaultdict(lambda: collections.defaultdict(list))
default = categories[""]
domains = {}
domains = {"": ""}
for extr in extractor._list_classes():
category = extr.category
@ -477,6 +477,9 @@ def build_extractor_list():
domains[category] = domain(extr)
else:
base = categories[extr.basecategory]
if not extr.instances:
base[""].append(extr.subcategory)
continue
for category, root, info in extr.instances:
base[category].append(extr.subcategory)
if category not in domains: