]> git.nbdom.net Git - plugin.video.news.nbdom.net.git/commitdiff
addon.py
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 11 Jul 2019 02:02:29 +0000 (03:02 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 11 Jul 2019 02:02:29 +0000 (03:02 +0100)
addon.py
addon.xml

index d0adf4f7bfd538a6cf2bc0d259325190a9f3d4cc..dff860177c226b4a2a671f3e9762623462e7438b 100644 (file)
--- 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)
index b8481e9ccaad767ec7c6fe31f42cbfaeb476a22a..3ca587aae086de458753fe099f0de97aa63fd1cf 100644 (file)
--- a/addon.xml
+++ b/addon.xml
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='UTF-8' standalone='yes'?>
 <addon 
   id="plugin.video.news.nbdom.net" 
-  name="News Videos
+  name="News" 
   provider-name="news.nbdom.net" 
   version="0.0.4">
   <news>