help with xbmc.Player|URLResolver
#1
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
Reply
#2
I don't see where you are actually playing the link.. you have it resolved and set everything up, yet missing the last piece to actually send the link to the player
Reply
#3
(2017-02-09, 21:52)Eldorado Wrote: I don't see where you are actually playing the link.. you have it resolved and set everything up, yet missing the last piece to actually send the link to the player

Thanks for the info, I actually forgot to run the "play" command. Interesting that for other sites and other servers only 'listitem.setPath (stream_url)' was enough to play the video.

Now I added this line and everything worked.

Code:
xbmcPlayer.play(stream_url)

Very Thanks
Reply

Logout Mark Read Team Forum Stats Members Help
help with xbmc.Player|URLResolver0