From 8bc8f308eda3c214ef08eafe774dbdfce5f32cc6 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 11 Jul 2019 03:02:29 +0100 Subject: [PATCH] addon.py --- addon.py | 8 ++++++-- addon.xml | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/addon.py b/addon.py index d0adf4f..dff8601 100644 --- a/addon.py +++ b/addon.py @@ -121,7 +121,11 @@ def index(): addon_handle = int(sys.argv[1]) sys.stderr = open(os.devnull, "w") - content = getUrl('https://news.nbdom.net/videos/kodi/') + url = 'https://news.nbdom.net/videos/kodi/' + + #count = getUrl(url+'/count/') + + content = getUrl(url) defaultImage = 'DefaultVideo.png' list = [] #list.append(['url',xbmcgui.ListItem('Hello'),True]) @@ -206,7 +210,7 @@ def index(): #xbmcplugin.addDirectoryItem(handle=addon_handle,url=info['link'],listitem=li) if not TEST: - xbmcplugin.setContent(addon_handle, 'movies') + xbmcplugin.setContent(addon_handle, 'videos') #xbmcplugin.addDirectoryItem(addon_handle,'',xbmcgui.ListItem('Hello', defaultImage),True) xbmcplugin.addDirectoryItems(addon_handle,list,len(list)) xbmcplugin.endOfDirectory(addon_handle) diff --git a/addon.xml b/addon.xml index b8481e9..3ca587a 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ -- 2.47.3