Skip to content

Commit 08efbec

Browse files
authored
[plugin.video.vimeo] 6.0.3 (#4670)
1 parent a696816 commit 08efbec

3 files changed

Lines changed: 13 additions & 8 deletions

File tree

plugin.video.vimeo/addon.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<addon id="plugin.video.vimeo" name="Vimeo" version="6.0.2" provider-name="jaylinski">
2+
<addon id="plugin.video.vimeo" name="Vimeo" version="6.0.3" provider-name="jaylinski">
33
<requires>
44
<import addon="xbmc.python" version="3.0.0"/>
55
<import addon="script.module.requests" version="2.29.0"/>
@@ -16,8 +16,13 @@
1616
<forum>https://forum.kodi.tv/showthread.php?tid=220437</forum>
1717
<website>https://vimeo.com</website>
1818
<source>https://github.com/jaylinski/kodi-addon-vimeo</source>
19-
<news>6.0.2 (2025-02-06)
19+
<news>6.0.3 (2025-05-22)
20+
Fix crash when playing password-protected videos with subtitles enabled
21+
22+
6.0.2 (2025-02-06)
2023
Handle Vimeo geo-blocking by displaying an error to affected users
24+
Don't add video to playlist when shared with addon
25+
Improve video-quality fallback for non-HLS video-formats
2126

2227
6.0.1 (2022-02-25)
2328
Fixed subtitle conversion issue

plugin.video.vimeo/resources/lib/api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,15 @@ def trending(self):
147147
res = self._do_api_request("/videos", params)
148148
return self._map_json_to_collection(res)
149149

150-
def resolve_texttracks(self, uri):
151-
res = self._do_api_request(uri, {})
150+
def resolve_texttracks(self, uri, password=None):
151+
res = self._do_api_request(uri, {"password": password})
152152
subtitles = res.get("data")
153153
for subtitle in subtitles:
154154
subtitle["srt"] = webvtt_to_srt(self._do_request(subtitle["link"]))
155155
return subtitles
156156

157157
def resolve_media_url(self, uri, password=None):
158-
# If we have a on-demand URL, we need to fetch the trailer and return the uri
158+
# If we have an on-demand URL, we need to fetch the trailer and return the uri
159159
if uri.startswith("/ondemand/"):
160160
xbmc.log("plugin.video.vimeo::Api() Resolving on-demand", xbmc.LOGDEBUG)
161161
media_url = self._get_on_demand_trailer(uri)

plugin.video.vimeo/resources/plugin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def resolve_list_item(handle, list_item, password=None, fetch_subtitles=False):
219219
list_item.setPath(resolved_url)
220220
text_tracks = list_item.getProperty("textTracks")
221221
if fetch_subtitles and text_tracks:
222-
list_item = add_subtitles(list_item, text_tracks)
222+
list_item = add_subtitles(list_item, text_tracks, password)
223223
xbmcplugin.setResolvedUrl(handle, succeeded=True, listitem=list_item)
224224

225225

@@ -231,8 +231,8 @@ def search(handle, query):
231231
xbmcplugin.endOfDirectory(handle)
232232

233233

234-
def add_subtitles(item, texttracks_url):
235-
subtitles = api.resolve_texttracks(texttracks_url)
234+
def add_subtitles(item, texttracks_url, password=None):
235+
subtitles = api.resolve_texttracks(texttracks_url, password)
236236
paths = []
237237
for subtitle in subtitles:
238238
file_name = "texttrack.{}.srt".format(subtitle["language"])

0 commit comments

Comments
 (0)