handle direct download video_url's (e.g. Heroero.com)

This commit is contained in:
bassdart 2025-02-23 14:24:14 +01:00
parent 8f1021a89f
commit 91e02dfaae

View file

@ -740,17 +740,22 @@ def resolveprovider(entry):
provider = str(entry["sources"][0]["provider"])
videoid = str(entry["sources"][0]["videoid"])
restricted = int(entry["sources"][0]["age_limit"])
video_url = str(entry["sources"][0]["video_url"])
elif entry["sources"][1]["provider"] == preferedprovider:
provider = str(entry["sources"][1]["provider"])
videoid = str(entry["sources"][1]["videoid"])
restricted = int(entry["sources"][1]["age_limit"])
video_url = str(entry["sources"][1]["video_url"])
else:
provider = str(entry["sources"][0]["provider"])
videoid = str(entry["sources"][0]["videoid"])
restricted = int(entry["sources"][0]["age_limit"])
video_url = str(entry["sources"][0]["video_url"])
else:
provider = str(entry["sources"][0]["provider"])
videoid = str(entry["sources"][0]["videoid"])
video_url = str(entry["sources"][0]["video_url"])
agerestricted = 0
agerestricted = int(entry["sources"][0]["age_limit"])
slug = str(entry["slug"])
@ -835,6 +840,9 @@ def resolveprovider(entry):
% (videoid)
)
provider = addonvevo
elif len(video_url) > 0:
url = video_url
if provider == "script.module.youtube.dl":
import YDStreamExtractor