Vimeo Add-on is broken, play with Youtube-DL

This commit is contained in:
bassdart 2019-03-17 21:33:55 +01:00
parent 5c1f348d36
commit d413338612

View file

@ -255,9 +255,17 @@ def play(url):
ytdl = YDStreamExtractor.getVideoInfo(idVideo)
playback_url = ytdl.streamURL()
else:
# without youtube_dl
xbmc.log(msg="without ytdl", level=xbmc.LOGDEBUG)
playback_url = entry['url']
if "vimeo" in entry['provider']:
# quick hard coded workaround
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)