Vimeo Add-on is broken, play with Youtube-DL
This commit is contained in:
parent
5c1f348d36
commit
d413338612
1 changed files with 11 additions and 3 deletions
14
default.py
14
default.py
|
@ -255,9 +255,17 @@ def play(url):
|
||||||
ytdl = YDStreamExtractor.getVideoInfo(idVideo)
|
ytdl = YDStreamExtractor.getVideoInfo(idVideo)
|
||||||
playback_url = ytdl.streamURL()
|
playback_url = ytdl.streamURL()
|
||||||
else:
|
else:
|
||||||
# without youtube_dl
|
if "vimeo" in entry['provider']:
|
||||||
xbmc.log(msg="without ytdl", level=xbmc.LOGDEBUG)
|
# quick hard coded workaround
|
||||||
playback_url = entry['url']
|
xbmc.log(msg="vimeo addon is broken, playing with ytdl", level=xbmc.LOGNOTICE)
|
||||||
|
import YDStreamExtractor
|
||||||
|
idVideo = entry['purl']
|
||||||
|
ytdl = YDStreamExtractor.getVideoInfo(idVideo)
|
||||||
|
playback_url = ytdl.streamURL()
|
||||||
|
else:
|
||||||
|
# without youtube_dl
|
||||||
|
xbmc.log(msg="without ytdl", level=xbmc.LOGDEBUG)
|
||||||
|
playback_url = entry['url']
|
||||||
|
|
||||||
item = xbmcgui.ListItem(path=playback_url)
|
item = xbmcgui.ListItem(path=playback_url)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue