The branch, dharma has been updated
       via  c08bcf52e5bc33e05df048f787ddc55a6598e23c (commit)
      from  f3f081db9cba4dd3b9c0e67edf914d3828382317 (commit)

- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=c08bcf52e5bc33e05df048f787ddc55a6598e23c

commit c08bcf52e5bc33e05df048f787ddc55a6598e23c
Author: spiff <[email protected]>
Date:   Wed Jan 12 21:25:51 2011 +0100

    [plugin.video.nederland24] updated to version 1.2.1, thanks to bosel

diff --git a/plugin.video.nederland24/README b/plugin.video.nederland24/README
index 11e9c7a..cf1f66b 100644
--- a/plugin.video.nederland24/README
+++ b/plugin.video.nederland24/README
@@ -1,3 +1,4 @@
-Nederland 24 is the collective name for a bouquet of specialty digital 
television channels from Netherlands Public Broadcasting. It also broadcasts a 
sample channel of the same name featuring a mix of programming from the other 
thematic channels.
+XBMC Addon dedicated to digital content provided by Dutch public broadcasting, 
currently including Nederland24 and news broadcasts. 
+
+This Addon was originally developed by NajGeetsrev.
 
-With this plugin you can view these channels in XBMC.
diff --git a/plugin.video.nederland24/addon.xml 
b/plugin.video.nederland24/addon.xml
index 3504715..bb634a6 100644
--- a/plugin.video.nederland24/addon.xml
+++ b/plugin.video.nederland24/addon.xml
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="plugin.video.nederland24"
        name="Nederland 24"
-       version="1.0.1"
-       provider-name="NajGeetsrev">
+       version="1.2.1"
+       provider-name="bosel">
   <requires>
     <import addon="xbmc.python" version="1.0"/>
   </requires>
@@ -12,8 +12,8 @@
   </extension>
   <extension point="xbmc.addon.metadata">
     <summary lang="en">Nederland 24</summary>
-    <description lang="en">Nederland 24 is the collective name for a bouquet 
of specialty digital television channels from Netherlands Public Broadcasting. 
It also broadcasts a sample channel of the same name featuring a mix of 
programming from the other thematic channels.</description>
-    <description lang="nl">Nederland 24 (voorheen Nederland 4) is de digitale 
vierde televisiezender van de Nederlandse Publieke Omroep. Nederland 24 is niet 
een gewone publieke zender; naast het feit dat de zender digitaal is, bestaat 
hij uit verschillende themakanalen die in feite onafhankelijk van elkaar werken 
maar die bekend staan onder de noemer Nederland 24.</description>
+    <description lang="en">Dutch public broadcasting offers 12 digital theme 
channels available on Nederland 24. These specialized public broadcasting 
channels supply specific target audiences with thematic programming 24 hours a 
day. These channels provide more in-depth, broader and supplementary content 
that cannot be found on the three regular public channels. Dutch viewers decide 
for themselves on Nederland 24.</description>
+    <description lang="nl">De publieke omroep biedt het Nederlandse publiek 
twaalf digitale themakanalen gebundeld in Nederland 24. Door middel van 
gespecialiseerde kanalen kan de publieke omroep specifieke doelgroepen 24 uur 
per dag van een thematische programmering voorzien. Het aanbod op deze kanalen 
vormt een verdieping, verbreding, aanvulling en/of versterking van reguliere 
uitzendingen en speelt in op het veranderende mediagedrag van het publiek. Het 
Nederlandse publiek kiest zelf wat het kijkt op Nederland 24.</description>
     <platform>all</platform>
   </extension>
-</addon>
+</addon>
\ No newline at end of file
diff --git a/plugin.video.nederland24/changelog.txt 
b/plugin.video.nederland24/changelog.txt
index 4993afe..ef960eb 100644
--- a/plugin.video.nederland24/changelog.txt
+++ b/plugin.video.nederland24/changelog.txt
@@ -1,3 +1,14 @@
+
+[B]Version 1.2.1[/B]
+-Branch to Origin
+-EPG
+-Artwork
+
+[B]Version 1.0.4[/B]
+- Rewrite
+- select channel
+- bandwith
+
 [B]Version 1.0.1[/B]
 - Processed some feedback
 
diff --git a/plugin.video.nederland24/default.py 
b/plugin.video.nederland24/default.py
index 9cf4b31..e095d23 100644
--- a/plugin.video.nederland24/default.py
+++ b/plugin.video.nederland24/default.py
@@ -2,34 +2,108 @@ import sys
 import os
 import xbmc, xbmcgui, xbmcplugin, xbmcaddon
 import urllib
-
+import urllib2
+import re
+# 
 # plugin handle
+
 handle = int(sys.argv[1])
+settings = xbmcaddon.Addon(id='plugin.video.nederland24')
+xbmcplugin.setContent(handle, 'episodes')
+xbmcplugin.addSortMethod(handle, xbmcplugin.SORT_METHOD_EPISODE)
+IMG_DIR = os.path.join(settings.getAddonInfo("path"),"resources", "media")
+
+def addLink(name,url,iconimage,description,channelId):
 
-def addLink(name,url,iconimage):
         retval=True
-        liz = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", 
thumbnailImage=iconimage)
-        liz.setInfo( type="Video", infoLabels={ "Title": name } )
+
+       if channelId!="0" and channelId!="20" and channelId!="29":
+               HTML=urllib2.urlopen("http://player.omroep.nl/?zenid="; + 
channelId).read()
+               nowTitle=((re.search(r'<span 
id="nowTitle">([^*]*?)</span>',HTML)).group(1)).strip()
+               nowPlot=(re.search(r'<p 
id="nowText">([^*]*?)</p>',HTML)).group(1).strip()
+               #nowTime=(re.search(r'<p 
id="nowTime">([^*]*?)</p>',HTML)).group(1).strip()
+               nextTitle=((re.search(r'<span 
id="nextTitle">([^*]*?)</span>',HTML)).group(1)).strip()
+               nextPlot=(re.search(r'<p 
id="nextText">([^*]*?)</p>',HTML)).group(1).strip()
+               nextTime=(re.search(r'<p 
id="nextTime">Aanvang:([^*]*?)</p>',HTML)).group(1).strip()
+               channelEPG =  "Nu: %s\n%s\n\nStraks: %s\n%s\n%s" % (nowTitle, 
nowPlot, nextTime, nextTitle, nextPlot)
+               
+       elif channelId!="0" and channelId!="29":
+           HTML=urllib2.urlopen("http://geschiedenis.vpro.nl/";).read()
+           nowTitle=((re.search(r'class="nu"><p 
class="date">([^*]*?)</p><h4>([^*]*?)</h4>',HTML)).group(2)).strip()
+           #nowTime=((re.search(r'class="nu"><p 
class="date">([^*]*?)</p><h4>([^*]*?)</h4>',HTML)).group(1)).strip()
+           nowPlot=((re.search(r'class="nu"><p 
class="date">([^*]*?)</p><h4>([^*]*?)</h4><p 
class="text">([^*]*?)</p>',HTML)).group(3)).strip()
+           nextTime=((re.search(r'straks" style="display: none;"><p 
class="date">([^*]*?)</p><h4>([^*]*?)</h4><p 
class="text">([^*]*?)</p>',HTML)).group(1)).strip()
+           nextTitle=((re.search(r'straks" style="display: none;"><p 
class="date">([^*]*?)</p><h4>([^*]*?)</h4><p 
class="text">([^*]*?)</p>',HTML)).group(2)).strip()
+           nextPlot=((re.search(r'straks" style="display: none;"><p 
class="date">([^*]*?)</p><h4>([^*]*?)</h4><p 
class="text">([^*]*?)</p>',HTML)).group(3)).strip()
+           channelEPG =  "Nu: %s\n%s\n\nStraks: %s\n%s\n%s" % (nowTitle, 
nowPlot, nextTime, nextTitle, nextPlot)
+
+        
+       elif channelId!="0":
+               channelEPG = time
+               nowTitle = time
+               nowPlot = time
+       else:
+               channelEPG = "Well this is"
+               nowTitle = "all a bit"
+               nowPlot = "unfortunate" 
+
+        
+        liz = xbmcgui.ListItem(channelEPG, iconImage="DefaultVideo.png", 
thumbnailImage=iconimage)
+        liz.setInfo( type="Video", infoLabels={ "Title": name,
+                                                #"Season":1,
+                                                #"Episode":1,,
+                                                #"premiered":channelTime,
+                                                "Plot":channelEPG,
+                                                "TVShowTitle":nowTitle
+                                                })
         retval = 
xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=url,listitem=liz)
         return retval
 
-def show_channellist():
-    Addon = xbmcaddon.Addon( id="plugin.video.nederland24")
-    channel_icons_path = os.path.join(Addon.getAddonInfo("path"),"icons")
-
-    addLink("101TV", "http://livestreams.omroep.nl/npo/101tv-bb";, 
os.path.join(channel_icons_path, "101tv.png"))
-    addLink("Consumenten 24", 
"http://livestreams.omroep.nl/npo/consumenten24-bb";, 
os.path.join(channel_icons_path, "consumenten24.png"))
-    addLink("Cultura 24", "http://livestreams.omroep.nl/npo/cultura24-bb";, 
os.path.join(channel_icons_path, "cultura24.png"))
-    addLink("Geschiedenis 24", 
"http://livestreams.omroep.nl/npo/geschiedenis24-bb";, 
os.path.join(channel_icons_path, "geschiedenis24.png"))
-    addLink("Best 24", "http://livestreams.omroep.nl/npo/best24-bb";, 
os.path.join(channel_icons_path, "best24.png"))
-    addLink("Holland Doc 24", 
"http://livestreams.omroep.nl/npo/hollanddoc24-bb";, 
os.path.join(channel_icons_path, "hollanddoc24.png"))
-    addLink("Humor TV 24", "http://livestreams.omroep.nl/npo/humortv24-bb";, 
os.path.join(channel_icons_path, "humortv24.png"))
-    addLink("Journaal 24", "http://livestreams.omroep.nl/nos/journaal24-bb";, 
os.path.join(channel_icons_path, "journaal24.png"))
-    addLink("Politiek 24", "http://livestreams.omroep.nl/nos/politiek24-bb";, 
os.path.join(channel_icons_path, "politiek24.png"))
-    addLink("Spirit 24", "http://livestreams.omroep.nl/npo/spirit24-bb";, 
os.path.join(channel_icons_path, "spirit24.png"))
-    addLink("Sterren 24", "http://livestreams.omroep.nl/npo/sterren24-bb";, 
os.path.join(channel_icons_path, "sterren24.png"))
-    addLink("z...@ppelin/Familie 24", 
"http://livestreams.omroep.nl/npo/familie24-bb";, 
os.path.join(channel_icons_path, "familie24.png"))
-    xbmcplugin.endOfDirectory(handle=handle, succeeded=True)
+#Start laatste journaal ipad mp4
+if settings.getSetting( "Laatste Achtuurjournaal" )=='true':
+    URL='http://nos.nl/'
+    page=urllib2.urlopen(URL).read()
+    time=re.findall(r'Achtuurjournaal</strong></a><span>([^*]*?)</span>',page)
+    URLlist=re.findall(r'/uitzending/[^a-z]*?-nos-journaal-2000-uur.html',page)
+    for URL in URLlist:
+        page=urllib2.urlopen(('http://nos.nl')+(URL)).read()
+        
video=re.search(r'http://content.nos.nl/content/playlist/uitzending/fragment/(.*?)mp4',page).group()
+        time=re.search(r'(NOS Journaal [^*]*?)</title>',page).group(1).strip()
+    #title=(video)
+        title='Laatste Achtuurjournaal'
+        addLink(title,video,os.path.join(IMG_DIR, "laatstejournaal.png"), 
time, "29")
+else:
+    print ""    
+
+BASE_URL                   = 'http://livestreams.omroep.nl'
+ 
+if settings.getSetting( "smallband" )=='true':
+    REZ = 'sb'
+else:
+    REZ = 'bb'
+    
+
+CHANNELS = [
+  ["101 TV", "101tv.png", "/npo/101tv-", "Weg met suffe en saaie tv! Het is 
tijd voor 101 TV, het 24-uurs jongerenkanaal van BNN en de Publieke Omroep. Met 
rauwe en brutale programma's, van en voor jongeren. Boordevol hilarische 
fragmenten, spannende livegames, bizarre experimenten en nieuws over festivals 
en gratis concertkaartjes. Kijken dus!", "246"],
+  ["Best 24", "best24.png", "/npo/best24-", "Best 24 brengt hoogtepunten uit 
zestig jaar televisiehistorie. Het is een feelgoodkanaal met 24 uur per dag de 
leukste, grappigste en meest spraakmakende programma's uit de Hilversumse 
schatkamer. Best 24: de schatkamer van de publieke omroep.", "252"],
+  ["Consumenten 24", "consumenten24.png", "/npo/consumenten24-", "Op 
Consumenten 24 ziet u dagelijks het laatste consumentennieuws en kunt u de hele 
week kijken naar herhalingen van Radar, Kassa, en vele andere 
consumentenprogramma's. In Vraag en Beantwoord kunt u live uw vraag stellen per 
telefoon en webcam.", "238"],
+  ["Cultura 24", "cultura24.png", "/npo/cultura24-", "Dit is het 
'cultuurkanaal van de Publieke Omroep' met de beste recente en oudere 'kunst en 
expressie' over verschillende onderwerpen. Klassieke muziek, dans, literatuur, 
theater, beeldende kunst, film 'Waar cultuur is, is Cultura 24'.", "239"],
+  ["Familie 24 / z...@ppelin", "familie24.png", "/npo/familie24-", 
"z...@ppelin24 zendt dagelijks uit van half drie 's nachts tot half negen 's 
avonds. Familie24 is er op de tussenliggende tijd. z...@ppelin 24 biedt ruimte 
aan (oude) bekende peuterprogramma's en je kunt er kijken naar nieuwe 
kleuterseries. Op Familie24 zijn bekende programma's te zien en nieuwe 
programma's en documentaires die speciaal voor Familie24 zijn gemaakt of 
aangekocht.", "261"],
+  ["Geschiedenis 24", "geschiedenis24.png", "/npo/geschiedenis24-", 
"Geschiedenis 24 biedt een actuele, duidende en verdiepende blik op de 
historie, maar ook een historische blik op de actualiteit. Om de urgentie te 
vergroten is de programmering thematisch. Ook programma's van Nederland 2 als 
In Europa, Andere Tijden Sport en De Oorlog zijn gelieerd aan Geschiedenis 
24.", "20"],
+  ["Holland Doc 24", "hollanddoc24.png", "/npo/hollanddoc24-", "Holland Doc 24 
brengt op verschillende manieren en niveaus documentaires en reportages onder 
de aandacht. De programmering op Holland Doc 24 is gecentreerd rond wekelijkse 
thema's, die gerelateerd zijn aan de actualiteit, de programmering van 
documentairerubrieken, van culturele instellingen en festivals.", "227"],
+  ["Humor TV 24", "humortv24.png", "/npo/humortv24-", "Humor TV 24 is een 
uitgesproken comedykanaal: een frisse, Nederlandse humorzender met 
hoogwaardige, grappige, scherpe, jonge, nieuwe, satirische, humoristische 
programma's.", "241"],
+  ["Journaal 24", "journaal24.png", "/nos/journaal24-", "Via het themakanaal 
'Journaal 24' kunnen de live televisieuitzendingen van het NOS Journaal worden 
gevolgd. De laatste Journaaluitzending wordt herhaald tot de volgende 
uitzending van het NOS Journaal.", "230"],
+  ["Politiek 24", "politiek24.png", "/nos/politiek24-", "Politiek 24 is het 
digitale kanaal over de Nederlandse politiek in de breedste zin van het 
woord.", "247"],
+  ["Spirit 24", "spirit24.png", "/npo/spirit24-", "Spirit 24 is interreligieus 
en multicultureel en biedt de kijker een breed aanbod van onderwerpen op het 
gebied van spiritualiteit, levensbeschouwing, zingeving, cultuur en filosofie, 
gezien vanuit verschillende geloofsrichtingen en invalshoeken. Spirit 24 laat 
de kijker genieten en brengt op toegankelijke wijze (nieuwe) inzichten!", 
"255"],
+  ["Sterren 24", "sterren24.png", "/npo/sterren24-", "Op Sterren 24 zijn de 
beste Nederlandse artiesten te bewonderen en te beluisteren. Naast clips en 
uitzendingen uit het rijke TROS-archief is er ruimte voor nieuw materiaal en 
bieden ze aanstormend Nederlands muziektalent een podium op 24-uurs 
muziekzender Sterren 24.", "249"]
+]
  
-ok = show_channellist()
+for channel in CHANNELS:
+        if settings.getSetting( channel[0] )=='true':
+           addLink(channel[0],(BASE_URL+channel[2]+REZ), os.path.join(IMG_DIR, 
channel[1]), channel[3], channel[4])
+       elif settings.getSetting( channel[0] )=='false':
+            print "" 
+            
+              
+xbmcplugin.endOfDirectory(handle=handle, succeeded=True)
 
diff --git a/plugin.video.nederland24/icon.png 
b/plugin.video.nederland24/icon.png
index 5103e84..56ac541 100644
Binary files a/plugin.video.nederland24/icon.png and 
b/plugin.video.nederland24/icon.png differ

-----------------------------------------------------------------------

Summary of changes:
 plugin.video.nederland24/README                    |    5 +-
 plugin.video.nederland24/addon.xml                 |   10 +-
 plugin.video.nederland24/changelog.txt             |   11 ++
 plugin.video.nederland24/default.py                |  118 ++++++++++++++++----
 plugin.video.nederland24/icon.png                  |  Bin 30495 -> 66123 bytes
 plugin.video.nederland24/icons/101tv.png           |  Bin 27170 -> 0 bytes
 plugin.video.nederland24/icons/best24.png          |  Bin 25277 -> 0 bytes
 plugin.video.nederland24/icons/consumenten24.png   |  Bin 13975 -> 0 bytes
 plugin.video.nederland24/icons/cultura24.png       |  Bin 15302 -> 0 bytes
 plugin.video.nederland24/icons/familie24.png       |  Bin 24780 -> 0 bytes
 plugin.video.nederland24/icons/geschiedenis24.png  |  Bin 14714 -> 0 bytes
 plugin.video.nederland24/icons/hollanddoc24.png    |  Bin 14135 -> 0 bytes
 plugin.video.nederland24/icons/humortv24.png       |  Bin 16493 -> 0 bytes
 plugin.video.nederland24/icons/journaal24.png      |  Bin 16683 -> 0 bytes
 plugin.video.nederland24/icons/politiek24.png      |  Bin 16436 -> 0 bytes
 plugin.video.nederland24/icons/spirit24.png        |  Bin 19841 -> 0 bytes
 plugin.video.nederland24/icons/sterren24.png       |  Bin 17998 -> 0 bytes
 .../resources/language/Dutch/strings.xml           |   21 ++++
 .../resources/language/English/strings.xml         |   21 ++++
 plugin.video.nederland24/resources/media/101tv.png |  Bin 0 -> 58801 bytes
 .../resources/media/best24.png                     |  Bin 0 -> 25018 bytes
 .../resources/media/consumenten24.png              |  Bin 0 -> 34748 bytes
 .../resources/media/cultura24.png                  |  Bin 0 -> 28951 bytes
 .../resources/media/familie24.png                  |  Bin 0 -> 63792 bytes
 .../resources/media/geschiedenis24.png             |  Bin 0 -> 33880 bytes
 .../resources/media/hollanddoc24.png               |  Bin 0 -> 34867 bytes
 .../resources/media/humortv24.png                  |  Bin 0 -> 30978 bytes
 .../resources/media/journaal24.png                 |  Bin 0 -> 30224 bytes
 .../resources/media/laatstejournaal.png            |  Bin 0 -> 27990 bytes
 .../resources/media/politiek24.png                 |  Bin 0 -> 26624 bytes
 .../resources/media/spirit24.png                   |  Bin 0 -> 25909 bytes
 .../resources/media/sterren24.png                  |  Bin 0 -> 27993 bytes
 plugin.video.nederland24/resources/settings.xml    |   24 ++++
 33 files changed, 181 insertions(+), 29 deletions(-)
 delete mode 100644 plugin.video.nederland24/icons/101tv.png
 delete mode 100644 plugin.video.nederland24/icons/best24.png
 delete mode 100644 plugin.video.nederland24/icons/consumenten24.png
 delete mode 100644 plugin.video.nederland24/icons/cultura24.png
 delete mode 100644 plugin.video.nederland24/icons/familie24.png
 delete mode 100644 plugin.video.nederland24/icons/geschiedenis24.png
 delete mode 100644 plugin.video.nederland24/icons/hollanddoc24.png
 delete mode 100644 plugin.video.nederland24/icons/humortv24.png
 delete mode 100644 plugin.video.nederland24/icons/journaal24.png
 delete mode 100644 plugin.video.nederland24/icons/politiek24.png
 delete mode 100644 plugin.video.nederland24/icons/spirit24.png
 delete mode 100644 plugin.video.nederland24/icons/sterren24.png
 create mode 100644 
plugin.video.nederland24/resources/language/Dutch/strings.xml
 create mode 100644 
plugin.video.nederland24/resources/language/English/strings.xml
 create mode 100644 plugin.video.nederland24/resources/media/101tv.png
 create mode 100644 plugin.video.nederland24/resources/media/best24.png
 create mode 100644 plugin.video.nederland24/resources/media/consumenten24.png
 create mode 100644 plugin.video.nederland24/resources/media/cultura24.png
 create mode 100644 plugin.video.nederland24/resources/media/familie24.png
 create mode 100644 plugin.video.nederland24/resources/media/geschiedenis24.png
 create mode 100644 plugin.video.nederland24/resources/media/hollanddoc24.png
 create mode 100644 plugin.video.nederland24/resources/media/humortv24.png
 create mode 100644 plugin.video.nederland24/resources/media/journaal24.png
 create mode 100644 plugin.video.nederland24/resources/media/laatstejournaal.png
 create mode 100644 plugin.video.nederland24/resources/media/politiek24.png
 create mode 100644 plugin.video.nederland24/resources/media/spirit24.png
 create mode 100644 plugin.video.nederland24/resources/media/sterren24.png
 create mode 100644 plugin.video.nederland24/resources/settings.xml


hooks/post-receive
-- 
Plugins

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to