The branch, frodo has been updated
       via  77a4fe80656d3131b1078c05e1c701465889c176 (commit)
      from  6e87c50d00e225ec5a8a3659f853e21140cd7876 (commit)

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

commit 77a4fe80656d3131b1078c05e1c701465889c176
Author: sphere <[email protected]>
Date:   Fri Jun 6 11:30:21 2014 +0200

    [plugin.video.dumpert] updated to version 1.0.4

diff --git a/plugin.video.dumpert/addon.xml b/plugin.video.dumpert/addon.xml
index 3a29006..55decf3 100644
--- a/plugin.video.dumpert/addon.xml
+++ b/plugin.video.dumpert/addon.xml
@@ -2,7 +2,7 @@
 <addon 
        id="plugin.video.dumpert" 
        name="Dumpert" 
-       version="1.0.3" 
+       version="1.0.4" 
        provider-name="Skipmode A1">
   <requires>
     <import addon="xbmc.python"                 version="2.1.0"/>
@@ -13,7 +13,6 @@
     <provides>video</provides>
   </extension>
   <extension point="xbmc.addon.metadata">
-       <platform>all</platform>
        <summary lang="en">Watch funny videos from Dumpert.nl (dutch)</summary>
        <description lang="en">Watch funny videos from Dumpert.nl 
(dutch)</description>
        <disclaimer lang="en">For bugs, requests or general questions visit the 
Dumpert.nl thread on the XBMC forum.</disclaimer>
diff --git a/plugin.video.dumpert/changelog.txt 
b/plugin.video.dumpert/changelog.txt
index 07ce0a4..81d95ff 100644
--- a/plugin.video.dumpert/changelog.txt
+++ b/plugin.video.dumpert/changelog.txt
@@ -1,13 +1,16 @@
-v1.0.0 (Sunday, 14 april 2013) :
-- initial version
-
-v1.0.1 (Friday, 10 may 2013) :
-- added xbmc forum link
+ v1.0.4 (Thursday, 06 June 2014) :
+- adjustments to changes in the website: changed get-method
  
+ v1.0.3 (Monday, 14 April 2014) :
+- adjustments to changes in the website. Thanks to TheGroove for helping out 
with the base64 stuff
+- video quality can be set in the settings now
+
 v1.0.2 (Saturday, 7 July 2013) :
 - added beautiful soup as dependency
 - added dutch strings
- 
- v1.0.3 (Monday, 14 April 2014) :
-- adjustments to changes in the website. Thanks to TheGroove for helping out 
with the base64 stuff
-- video quality can be set in the settings now
\ No newline at end of file
+
+v1.0.1 (Friday, 10 may 2013) :
+- added xbmc forum link
+
+v1.0.0 (Sunday, 14 april 2013) :
+- initial version
\ No newline at end of file
diff --git a/plugin.video.dumpert/resources/lib/dumpert_const.py 
b/plugin.video.dumpert/resources/lib/dumpert_const.py
index 08e247e..6953650 100644
--- a/plugin.video.dumpert/resources/lib/dumpert_const.py
+++ b/plugin.video.dumpert/resources/lib/dumpert_const.py
@@ -8,5 +8,5 @@ __addon__       = "plugin.video.dumpert"
 __settings__    = xbmcaddon.Addon(id=__addon__ )
 __language__    = __settings__.getLocalizedString
 __images_path__ = os.path.join( 
xbmcaddon.Addon(id=__addon__).getAddonInfo('path'), 'resources', 'images' )
-__date__        = "14 april 2014"
-__version__     = "1.0.3"
\ No newline at end of file
+__date__        = "05 june 2014"
+__version__     = "1.0.4"
\ No newline at end of file
diff --git a/plugin.video.dumpert/resources/lib/dumpert_utils.py 
b/plugin.video.dumpert/resources/lib/dumpert_utils.py
index ca5fb78..e878a3f 100644
--- a/plugin.video.dumpert/resources/lib/dumpert_utils.py
+++ b/plugin.video.dumpert/resources/lib/dumpert_utils.py
@@ -41,14 +41,15 @@ class HTTPCommunicator :
     # GET
     #
     def get( self, url ):
-        h = urllib2.HTTPHandler(debuglevel=0)
+        user_agent = 'Mozilla/5.0 (Windows NT 6.1; rv:29.0) Gecko/20100101 
Firefox/29.0'
+        values = {}
+        headers = { 'User-Agent'      : user_agent , 
+                    'Accept-Encoding' : 'gzip'     }
+        data = urllib.urlencode(values)
+        req = urllib2.Request(url, data, headers)
+        f = urllib2.urlopen(req)
         
-        request = urllib2.Request( url )
-        request.add_header( "Accept-Encoding", "gzip" ) 
-        opener = urllib2.build_opener(h)
-        f = opener.open(request)
-
-        # Compressed (gzip) response...
+        # Compressed (gzip) response
         if f.headers.get( "content-encoding" ) == "gzip" :
             htmlGzippedData = f.read()
             stringIO        = StringIO.StringIO( htmlGzippedData )
@@ -59,7 +60,7 @@ class HTTPCommunicator :
             # print "[HTTP Communicator] GET %s" % url
             # print "[HTTP Communicator] Result size : compressed [%u], 
decompressed [%u]" % ( len( htmlGzippedData ), len ( htmlData ) )
             
-        # Plain text response...
+        # Plain text response
         else :
             htmlData = f.read()
         

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

Summary of changes:
 plugin.video.dumpert/addon.xml                     |    3 +-
 plugin.video.dumpert/changelog.txt                 |   21 +++++++++++--------
 .../resources/lib/dumpert_const.py                 |    4 +-
 .../resources/lib/dumpert_utils.py                 |   17 ++++++++-------
 4 files changed, 24 insertions(+), 21 deletions(-)


hooks/post-receive
-- 
Plugins

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to