diff --git a/default.py b/default.py index 258f9ee..7524658 100644 --- a/default.py +++ b/default.py @@ -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