Beiträge von maxmaxmax

    Wollte mir das mit den Eurosport Player mal anschauen:

    Die api die im Addon verwendet wird ist folgende:
    https://search-api.svcs.eurosportplayer.com/svc/search/v2/…b/Airings/onAir

    Dort werden alle Kanäle, die im Moment laufen, aufgelistet. Leider sehe ich auch gerade im Webbrowser keinen Bonuskanal online. Ggf. ja morgen/im Laufe der Woche, dann schaue ich mal weiter.

    Wenn es gut läuft müsste man nur hier bisschen was anpassen:

    Hallo,

    ich versuche mich gerade wieder an einem Addon und habe nun folgendes Problem. Das Video startet, wenn ich mit der rechten Maustaste ins Kontexmenü gehe und auf "Play from here" drücke. ich würde aber gerne, dass das video sofort startet, wenn ich mit der linken Maustaste (ohne Kontextmenü) hin navigiere.

    Was mache ich falsch?

    Code
    elif mode[0] == 'playGame':
        streamURL_response = requests.post(url=stream_url_1)
        streamURL = streamURL_response.json()['data']['stream']
        xbmc.[definition='1','0']log[/definition]("hierasd "+stream_url_1+" - "+streamURL)
        listitem = xbmcgui.ListItem(path=streamURL)
        listitem.setProperty('inputstreamaddon', 'inputstream.adaptive')
        listitem.setProperty('inputstream.adaptive.manifest_type', 'hls')
        listitem.setInfo('video', '')
        listitem.setProperty('IsPlayable', 'true')
        xbmcplugin.setResolvedUrl(_addon_handler, True, listitem)

    Bekomme mit der aktuellen Version für DAZN spanien zurzeit folgende Fehlermeldung:
    2019-09-22 20:06:21.827 T:9676 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
    Error Type: <type 'exceptions.UnicodeEncodeError'>
    Error Contents: 'ascii' codec can't encode character u'\xf3' in position 19: ordinal not in range(128)
    Traceback (most recent call last):
    File "C:\Users\Saskia\AppData\Roaming\Kodi\addons\plugin.video.dazn2\addon.py", line 65, in <module>
    router(change_text(sys.argv[2][1:]))
    File "C:\Users\Saskia\AppData\Roaming\Kodi\addons\plugin.video.dazn2\addon.py", line 28, in router
    parser.rails_items(client.rails(id_, params), id_)
    File "C:\Users\Saskia\AppData\Roaming\Kodi\addons\plugin.video.dazn2\resources\lib\parser.py", line 29, in rails_items
    self.items.add_item(item)
    File "C:\Users\Saskia\AppData\Roaming\Kodi\addons\plugin.video.dazn2\resources\lib\items.py", line 77, in add_item
    xbmcplugin.addDirectoryItem(self.plugin.addon_handle, self.plugin.build_url(data), listitem, folder)
    File "C:\Users\Saskia\AppData\Roaming\Kodi\addons\plugin.video.dazn2\resources\lib\common.py", line 49, in build_url
    return self.addon_url + '?' + urllib.urlencode(query)
    File "C:\Program Files\Kodi\system\python\Lib\urllib.py", line 1343, in urlencode
    v = quote_plus(str(v))
    UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 19: ordinal not in range(128)
    -->End of Python script error report<--


    Leider finde ich bei github den Issue-Knopf nicht mehr. Jemand Erfahrung damit?
    https://github.com/AlleSchonWeg/plugin.video.dazn

    Bitte schön. Nur leider sagt er nichts (zumindest für mich):


    Danke peak3d. Du hattest recht. Die URL konnte so nicht abgegriffen werden aus der Response und daher habe ich nichts übergeben. Nun klappt das und er bringt mir auch keine Fehlermeldung mehr. Nur leider öffnet sich dann immer folgendes leeres "Fenster" anstatt das der Stream startet.


    meine Properties sehen folgendermaßen aus:

    Code
    listitem = xbmcgui.ListItem(path=streamURL_final)
        listitem.setProperty('inputstreamaddon', 'inputstream.adaptive')
        listitem.setProperty('inputstream.adaptive.manifest_type', 'ism')
        xbmcplugin.setResolvedUrl(addon_handle, True, listitem)

    Was fehlt mir denn noch damit Kodi weiß dass es eine Stream-URL ist und Inputstream startet?

    Danke

    Die StreamURL kann ich nun ermitteln. Nun kommt aber leider folgende Fehlermeldung:

    Code
    EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                 - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                Error Type: <type 'exceptions.TypeError'>
                                                Error Contents: 'instancemethod' object has no attribute '__getitem__'
                                                Traceback (most recent call last):
                                                  File "C:\Users\xxx\AppData\Roaming\Kodi\addons\plugin.video.golftv\default.py", line 156, in <module>
                                                    listitem = xbmcgui.ListItem(path=stremURL_response['ContentUrl'])
                                                TypeError: 'instancemethod' object has no attribute '__getitem__'
                                                -->End of Python script error report<--
    Code
    listitem = xbmcgui.ListItem(path=stremURL_response['ContentUrl'])
        listitem.setInfo('video', '')
        listitem.setProperty('inputstreamaddon', 'inputstream.adaptive')
        listitem.setProperty('inputstream.adaptive.manifest_type', 'mpd')
        xbmcplugin.setResolvedUrl(_addon_handler, True, listitem)

    Folgendes bekomme ich und die ContentURL (die xxx hab ich eingefügt) gebe ich weiter zu Inputstream:

    Code
    {"Response":"OK","ResponseCode":1,"Message":"","Action":"","ContentUrl":"https://dvr-i-main-dgolf-ott-prd.akamaized.net/dvr/081cc966-0b69-4269-88e0-6fc21db37c5c/081cc966-0b69-4269-88e0-6fc21db37c5c.ism/manifest(format=m3u8-aapl,filter=html5-fullres)?hdnea=st=xxx~exp=xxx~acl=/*~hmac=xxx&hdcore=2.11.3","HeartBeatTime":0,"Signature":"xxx","ActionParameters":""}

    Wohl nicht die beste Lösung aber es klappt:

    Code
    requests2 = requests.get(url='https://www.golf.tv/divauni/DGOLF/fe//video/videodata/'+args['videoid'][0]+'.xml')
    
    
        root = etree.ElementTree(etree.fromstring(requests2.text))
    
    
        for uri in root.iter('videoSource'):
            if streamURL = "":
                streamURL = uri[1].text