Compare commits

...

5 commits

3 changed files with 51 additions and 39 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.vidfltr" name="VIDFLTR Music Videos" version="1.0.0-rc.1" provider-name="bassdart">
<addon id="plugin.video.vidfltr" name="VIDFLTR Music Videos" version="1.0.0-rc.2" provider-name="bassdart">
<requires>
<import addon="script.module.six" version="0.0.1"/>
<import addon="script.module.kodi-six" />
@ -33,7 +33,10 @@
<clearlogo>resources/img/kodi/clearlogo.png</clearlogo>
<screenshot></screenshot>
</assets>
<news>1.0.0-alpha.1
<news>1.0.0-rc.2
- handle direct download video_url's (e.g. Heroero.com)
- minimal cleanups
1.0.0-rc.1
- finally push an initial 1.0.0-rc.1 with all the additions and fixes added in the last years
0.9.9
- play with new Vimeo Add-on from jaylinski if it's available and otherwise fallback to youtube-dl

View file

@ -1,4 +1,7 @@
1.0.0-alpha.1
1.0.0-rc.2
- handle direct download video_url's (e.g. Heroero.com)
- minimal cleanups
1.0.0-rc.1
- finally push an initial 1.0.0-rc.1 with all the additions and fixes added in the last years
0.9.9
- play with new Vimeo Add-on from jaylinski if it's available and otherwise fallback to youtube-dl

View file

@ -493,37 +493,35 @@ def numbers():
def camelot():
#fanart = "resources/img/camelot/camleot.png"
if sort == "random" or sort == "date":
num1 = 0
for num in range(1, 13):
# logic to get get all the different translation strings from camelot wheel
minor = 30149 + num + num1
major = 30149 + num + num1 + 1
log(
msg="camelotnumber=%s, minor=%s, major=%s" % (num, minor, major),
level=xbmc.LOGINFO,
)
fanart = os.path.join(
addonDir, "resources/img/camelot/" + str(num) + "A.png"
)
addDir(
translation(minor),
"&limit=camelot&sort=" + sort + "&start=" + str(num) + "A",
"sortTitlesBy",
fanart,
)
fanart = os.path.join(
addonDir, "resources/img/camelot/" + str(num) + "B.png"
)
addDir(
translation(major),
"&limit=camelot&sort=" + sort + "&start=" + str(num) + "B",
"sortTitlesBy",
fanart,
)
num1 += 1
endOfDirectory()
num1 = 0
for num in range(1, 13):
# logic to get get all the different translation strings from camelot wheel
minor = 30149 + num + num1
major = 30149 + num + num1 + 1
log(
msg="camelotnumber=%s, minor=%s, major=%s" % (num, minor, major),
level=xbmc.LOGINFO,
)
fanart = os.path.join(
addonDir, "resources/img/camelot/" + str(num) + "A.png"
)
addDir(
translation(minor),
"&limit=camelot&sort=" + sort + "&start=" + str(num) + "A",
"sortTitlesBy",
fanart,
)
fanart = os.path.join(
addonDir, "resources/img/camelot/" + str(num) + "B.png"
)
addDir(
translation(major),
"&limit=camelot&sort=" + sort + "&start=" + str(num) + "B",
"sortTitlesBy",
fanart,
)
num1 += 1
endOfDirectory()
def opensettings():
@ -739,20 +737,25 @@ def resolveprovider(entry):
):
provider = str(entry["sources"][0]["provider"])
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"])
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"])
agerestricted = 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"])
agerestricted = int(entry["sources"][0]["age_limit"])
video_url = str(entry["sources"][0]["video_url"])
else:
# we should never end up here?
provider = str(entry["sources"][0]["provider"])
videoid = str(entry["sources"][0]["videoid"])
agerestricted = 0
agerestricted = int(entry["sources"][0]["age_limit"])
agerestricted = int(entry["sources"][0]["age_limit"])
video_url = str(entry["sources"][0]["video_url"])
slug = str(entry["slug"])
addonyoutube = addon.getSetting("addon-youtube")
addonyoutubeagerestricted = addon.getSetting("addon-youtube-age-restricted")
@ -835,6 +838,9 @@ def resolveprovider(entry):
% (videoid)
)
provider = addonvevo
elif len(video_url) > 0:
url = video_url
if provider == "script.module.youtube.dl":
import YDStreamExtractor