v18 -  allways get error "ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://"
#1
I have developed an addon that works fine in KODI V17. It provides German Tecast infos for TVShows.

elif action == 'get_item_serienplaner':
    sp_items = refreshWidget()
    writeLog('spitems %s' % (sp_items), level=xbmc.LOGDEBUG)
    writeLog('SerienPlaner sysargv: '+str(sys.argv), level=xbmc.LOGDEBUG)
    url = '-'
    for sitem in sp_items:
        li = xbmcgui.ListItem(label2=sitem['TVShow'], label=sitem['Title'], thumbnailImage=sitem['Thumb'])

        if sitem['_Starttime'] <= datetime.datetime.strftime(datetime.datetime.now(), '%Y-%m-%d %H:%M:%S'):
            li.setProperty("Playstatus", "IsRunning")
        else:
            li.setProperty("Playstatus", "IsInFuture")

        li.setProperty("channel", sitem['Channel'])
        li.setArt({'poster': sitem['Poster'], 'fanart': sitem['Fanart'], 'clearlogo' : sitem['Clearlogo']})
        li.setInfo('video', {'mediatype' : "episode", 'Season' : sitem['Staffel'], 'Episode' : sitem['Episode'], 'Title' : sitem['Title'], 'Genre' : sitem['Genre'], 'mpaa' : sitem['Altersfreigabe'], 'year' : sitem['Jahr'], 'plot' : sitem['Description'], 'rating' : sitem['Rating'], 'studio' : sitem['Studio'], 'tvshowtitle' : sitem['TVShow']})
        li.setProperty("senderlogo", sitem['Logo'])
        li.setProperty("starttime", sitem['Starttime'])
        li.setProperty("date", sitem['Datum'])
        li.setProperty("RunTime", sitem['RunningTime'])
        li.setProperty("PVRID", sitem['PVRID'])
        li.setProperty("status", sitem['Status'])
        li.setProperty('datetime', '%s %s' % (sitem['Datum'], sitem['Starttime']))
        li.setProperty('recordtime', sitem['_Starttime'])
        li.setProperty("recordname", '%s.S%sE%s.%s' % (sitem['TVShow'], sitem['Staffel'], sitem['Episode'], sitem['Title']))
        li.setProperty("DBType", '%s' % ("serienplaner"))
        xbmcplugin.addDirectoryItem(handle=addon_handle, url=url, listitem=li)
    xbmcplugin.endOfDirectory(addon_handle)
    xbmc.executebuiltin("Container.Refresh")

I use the listItems for a widget. In the override.xml I add the following line...

<widget label="$INFO[System.AddonTitle(plugin.program.serienplaner)]" name="$INFO[System.AddonTitle(plugin.program.serienplaner)]" condition="System.HasAddon(plugin.program.serienplaner)" type="pvr" target="pvr" path="plugin://plugin.program.serienplaner/?action=get_item_serienplaner&amp;reload=$INFO[Window(Home).Property(SerienPlaner.Countdown)]">Serienplaner</widget>
So I could add the Widget "Serienplaner".

But now in KODI 18 I get the following error:
Code:
ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.program.serienplaner/?action=get_item_serienplaner&reload=1549811424.19

So I don't have any Idea, why this error happend. Could anyone give me a hint
Board: B85M-ITX
CPU: i3 4330
GPU: Geforce GTX 750ti
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
allways get error "ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://"00