require 'extension' data for each URL (#382)

This commit is contained in:
Mike Fährmann
2019-08-14 12:28:21 +02:00
parent a67413d64f
commit 23251356cb
5 changed files with 9 additions and 1 deletions

View File

@@ -78,6 +78,7 @@ class SexcomExtractor(Extractor):
path += "/hd"
data["url"] = self.root + path
else:
data["extension"] = None
data["url"] = "ytdl:" + text.extract(
extr('<iframe', '>'), ' src="', '"')[0]
else: