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

@ -254,6 +254,14 @@ def play(url):
idVideo = entry['purl']
ytdl = YDStreamExtractor.getVideoInfo(idVideo)
playback_url = ytdl.streamURL()
else:
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)