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

add a 'generated by …' comment to supportedsites.rst

This commit is contained in:
Mike Fährmann 2021-01-22 21:02:12 +01:00
parent 0eea424a52
commit e1bdd2ab67
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,9 @@
Supported Sites
===============
Unless otherwise known, assume all sites to be NSFW
..
generated by scripts/supportedsites.py
Consider all sites to be NSFW, unless otherwise known.
==================== =================================== ================================================== ================
Site URL Capabilities Authentication

View File

@ -3,6 +3,7 @@
"""Generate a reStructuredText document with all supported sites"""
import os
import sys
import collections
@ -330,7 +331,9 @@ def write_output(fobj, columns, extractors):
# caption
w("Supported Sites\n")
w("===============\n")
w("Unless otherwise known, assume all sites to be NSFW\n\n")
w("..\n generated by {}\n\n".format(
"/".join(os.path.normpath(__file__).split(os.sep)[-2:])))
w("Consider all sites to be NSFW, unless otherwise known.\n\n")
# table head
sep = " ".join("=" * c[1] for c in columns) + "\n"