[ytdl] add extractor for sites supported by youtube-dl

(#1680, #878)

Can be used by prefixing any URL with 'ytdl:',
or by setting 'extractor,ytdl.enabled' to 'true'.
This commit is contained in:
Mike Fährmann
2021-07-10 20:47:33 +02:00
parent 64240c8d42
commit 36ac2197db
8 changed files with 195 additions and 9 deletions

View File

@@ -147,7 +147,7 @@ class TestExtractorModule(unittest.TestCase):
return c.capitalize()
for extr in extractor.extractors():
if extr.category not in ("", "oauth"):
if extr.category not in ("", "oauth", "ytdl"):
expected = "{}{}Extractor".format(
capitalize(extr.category),
capitalize(extr.subcategory),