handle direct download video_url's (e.g. Heroero.com)
This commit is contained in:
parent
8f1021a89f
commit
91e02dfaae
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue