]> git.nbdom.net Git - plugin.video.news.nbdom.net.git/commitdiff
default.py
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 17 Apr 2019 10:55:34 +0000 (11:55 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 17 Apr 2019 10:55:34 +0000 (11:55 +0100)
addon.xml
default.py [new file with mode: 0644]

index 1b794b07a954be6631cb3382adec9b85c3c4d051..8dd86529049ddb0417ed9681249b967a9a2eb10e 100644 (file)
--- a/addon.xml
+++ b/addon.xml
@@ -18,8 +18,8 @@
     <description lang="en">New.nbdom.net is an independent, listener-supported alternative news source. It operates on the principle of open source intelligence and provides podcasts, interviews, articles and videos about breaking news and important issues from 9/11 Truth and false flag terror to the Big Brother police state, eugenics, geopolitics, the central banking fraud and more..</description>
     <language>en</language>
     <platform>all</platform>
-       <license>GNU GENERAL PUBLIC LICENSE. Version 3, June 2007</license>
-       <forum>http://forum.xbmc.org/showthread.php?tid=177772</forum>
+       <license>GPL-2.0</license>
+       <forum></forum>
        <website>http://news.nbdom.net/</website>
        <email></email>
        <source>http://news.nbdom.net/plugin.zip</source>
diff --git a/default.py b/default.py
new file mode 100644 (file)
index 0000000..c8622ad
--- /dev/null
@@ -0,0 +1,22 @@
+import sys
+import xbmcgui
+import xbmcplugin
+import urllib,urllib2,re
+
+addon_handle = int(sys.argv[1])
+
+xbmcplugin.setContent(addon_handle, 'movies')
+
+url = 'http://localhost/some_video.mkv'
+li = xbmcgui.ListItem('My First Video!', iconImage='DefaultVideo.png')
+xbmcplugin.addDirectoryItem(handle=addon_handle, url=url, listitem=li)
+
+xbmcplugin.endOfDirectory(addon_handle)
+
+def getUrl(url):
+       req = urllib2.Request(url)
+       req.add_header('User-Agent', 'Kodi')
+       response = urllib2.urlopen(req)
+       content = response.read()
+       response.close()
+       return content