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
|
@ -254,6 +254,14 @@ def play(url):
|
||||||
idVideo = entry['purl']
|
idVideo = entry['purl']
|
||||||
ytdl = YDStreamExtractor.getVideoInfo(idVideo)
|
ytdl = YDStreamExtractor.getVideoInfo(idVideo)
|
||||||
playback_url = ytdl.streamURL()
|
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:
|
else:
|
||||||
# without youtube_dl
|
# without youtube_dl
|
||||||
xbmc.log(msg="without ytdl", level=xbmc.LOGDEBUG)
|
xbmc.log(msg="without ytdl", level=xbmc.LOGDEBUG)
|
||||||
|
|
Loading…
Reference in a new issue