[docs:supportedsites] include base categories without instances
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user