I’m trying to open this link in kodi through Urlresolver, it does not work, but if I copy the link generated by urlresolver and paste it into the browser, the video opens in the browser.
Does anyone know how to do something wrong?
URLResolver version: 3.0.26
Original Url link
https://openload.co/embed/F1MoouLTpIA/Co…endado.mp4
Url stream URLResolver
https://1fgqftw.oloadcdn.net/dl/l/IggNK8…?mime=true
Code:
def player(name, url, titulo, imgcapa):
log(url)
hmf = urlresolver.HostedMediaFile(url.encode('utf-8'))
if not hmf:
msg('O Servidor escolhido não é compatível com sua versão do script URLresolver!\n\nEscolha outro servidor.')
else:
try:
pDialog = xbmcgui.DialogProgressBG()
pDialog.create(G_header, 'Resolvendo Link...')
stream_url = hmf.resolve()
pDialog.close()
try:
pDialog1 = xbmcgui.DialogProgressBG()
pDialog1.create(G_header, 'Importando o arquivo de vídeo...')
listitem = xbmcgui.ListItem(iconImage='DefaultVideo.png', thumbnailImage=imgcapa)
listitem.setPath(stream_url)
listitem.setInfo( type="Video", infoLabels={ "Title": titulo } )
listitem.setProperty('mimetype', 'video/mp4')
listitem.setProperty('IsPlayable', 'true')
xbmcPlayer = xbmc.Player(xbmc.PLAYER_CORE_AUTO)
log(stream_url)
pDialog1.close()
except:
msg('Ocorreu um erro ao abrir o arquivo de vídeo:\n' + url.encode('utf-8'))
pDialog1.close()
except:
msg('Ocorreu um erro ao resolver esta url:\n' + url.encode('utf-8') + '\nÉ provável que o link expirou ou violou DCMA!')
I extract the ‘Original Url link’ from this site:
http://www.assistirfilmeshd.org/collide-legendado.html
Thanks