minimal cleanup for agesrestricted variable
This commit is contained in:
parent
34d448ae1f
commit
8b3187e33f
1 changed files with 5 additions and 5 deletions
10
default.py
10
default.py
|
@ -737,25 +737,25 @@ def resolveprovider(entry):
|
||||||
):
|
):
|
||||||
provider = str(entry["sources"][0]["provider"])
|
provider = str(entry["sources"][0]["provider"])
|
||||||
videoid = str(entry["sources"][0]["videoid"])
|
videoid = str(entry["sources"][0]["videoid"])
|
||||||
restricted = int(entry["sources"][0]["age_limit"])
|
agerestricted = int(entry["sources"][0]["age_limit"])
|
||||||
video_url = str(entry["sources"][0]["video_url"])
|
video_url = str(entry["sources"][0]["video_url"])
|
||||||
elif entry["sources"][1]["provider"] == preferedprovider:
|
elif entry["sources"][1]["provider"] == preferedprovider:
|
||||||
provider = str(entry["sources"][1]["provider"])
|
provider = str(entry["sources"][1]["provider"])
|
||||||
videoid = str(entry["sources"][1]["videoid"])
|
videoid = str(entry["sources"][1]["videoid"])
|
||||||
restricted = int(entry["sources"][1]["age_limit"])
|
agerestricted = int(entry["sources"][1]["age_limit"])
|
||||||
video_url = str(entry["sources"][1]["video_url"])
|
video_url = str(entry["sources"][1]["video_url"])
|
||||||
else:
|
else:
|
||||||
provider = str(entry["sources"][0]["provider"])
|
provider = str(entry["sources"][0]["provider"])
|
||||||
videoid = str(entry["sources"][0]["videoid"])
|
videoid = str(entry["sources"][0]["videoid"])
|
||||||
restricted = int(entry["sources"][0]["age_limit"])
|
agerestricted = int(entry["sources"][0]["age_limit"])
|
||||||
video_url = str(entry["sources"][0]["video_url"])
|
video_url = str(entry["sources"][0]["video_url"])
|
||||||
else:
|
else:
|
||||||
|
# we should never end up here?
|
||||||
provider = str(entry["sources"][0]["provider"])
|
provider = str(entry["sources"][0]["provider"])
|
||||||
videoid = str(entry["sources"][0]["videoid"])
|
videoid = str(entry["sources"][0]["videoid"])
|
||||||
|
agerestricted = int(entry["sources"][0]["age_limit"])
|
||||||
video_url = str(entry["sources"][0]["video_url"])
|
video_url = str(entry["sources"][0]["video_url"])
|
||||||
|
|
||||||
agerestricted = 0
|
|
||||||
agerestricted = int(entry["sources"][0]["age_limit"])
|
|
||||||
slug = str(entry["slug"])
|
slug = str(entry["slug"])
|
||||||
addonyoutube = addon.getSetting("addon-youtube")
|
addonyoutube = addon.getSetting("addon-youtube")
|
||||||
addonyoutubeagerestricted = addon.getSetting("addon-youtube-age-restricted")
|
addonyoutubeagerestricted = addon.getSetting("addon-youtube-age-restricted")
|
||||||
|
|
Loading…
Add table
Reference in a new issue