[urlshortener] add tinyurl.com as an example
This commit is contained in:
@@ -317,6 +317,10 @@
|
|||||||
"archive": "~/gallery-dl/custom-archive-file-for-TBIB.db",
|
"archive": "~/gallery-dl/custom-archive-file-for-TBIB.db",
|
||||||
"filename": "{id}_{md5}.{extension}",
|
"filename": "{id}_{md5}.{extension}",
|
||||||
"sleep-request": [0, 1.2]
|
"sleep-request": [0, 1.2]
|
||||||
|
},
|
||||||
|
|
||||||
|
"urlshortener": {
|
||||||
|
"tinyurl": {"root": "https://tinyurl.com"}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ from .. import exception
|
|||||||
|
|
||||||
|
|
||||||
class UrlshortenerExtractor(BaseExtractor):
|
class UrlshortenerExtractor(BaseExtractor):
|
||||||
"""Base class for general-purpose URL shorteners"""
|
"""Extractor for general-purpose URL shorteners"""
|
||||||
basecategory = "urlshortener"
|
basecategory = "urlshortener"
|
||||||
test = (
|
test = (
|
||||||
("https://bit.ly/3cWIUgq", {
|
("https://bit.ly/3cWIUgq", {
|
||||||
|
|||||||
Reference in New Issue
Block a user