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])
#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)
<?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>