[urlshortener] add tinyurl.com as an example

This commit is contained in:
ClosedPort22
2023-03-29 13:36:43 +08:00
parent 9e2a945013
commit 71b26adb9b
2 changed files with 5 additions and 1 deletions

View File

@@ -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"}
}
},

View File

@@ -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", {