From 71b26adb9b737717ebd79a1a513bebe52e787e8b Mon Sep 17 00:00:00 2001 From: ClosedPort22 <44864697+ClosedPort22@users.noreply.github.com> Date: Wed, 29 Mar 2023 13:36:43 +0800 Subject: [PATCH] [urlshortener] add tinyurl.com as an example --- docs/gallery-dl-example.conf | 4 ++++ gallery_dl/extractor/urlshortener.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/gallery-dl-example.conf b/docs/gallery-dl-example.conf index ef7b3b50..da386dd6 100644 --- a/docs/gallery-dl-example.conf +++ b/docs/gallery-dl-example.conf @@ -317,6 +317,10 @@ "archive": "~/gallery-dl/custom-archive-file-for-TBIB.db", "filename": "{id}_{md5}.{extension}", "sleep-request": [0, 1.2] + }, + + "urlshortener": { + "tinyurl": {"root": "https://tinyurl.com"} } }, diff --git a/gallery_dl/extractor/urlshortener.py b/gallery_dl/extractor/urlshortener.py index d95f182e..23a6df86 100644 --- a/gallery_dl/extractor/urlshortener.py +++ b/gallery_dl/extractor/urlshortener.py @@ -11,7 +11,7 @@ from .. import exception class UrlshortenerExtractor(BaseExtractor): - """Base class for general-purpose URL shorteners""" + """Extractor for general-purpose URL shorteners""" basecategory = "urlshortener" test = ( ("https://bit.ly/3cWIUgq", {