• 1
  • 2(current)
  • 3
  • 4
  • 5
  • 7
Release Dumpert.nl Video-Addon (dutch)
#16
Working again Thank you devs, this is one of my most used add ons. Awesome !
Reply
#17
Yeah thanks a lot! This is probably my third most used add-on... after Tweakers and Hardware.info, and you made those too Smile
Nice work.
Reply
#18
v1.0.4 (Thursday, 06 June 2014) :
- adjustments due to changes in the website: changed get-method
Reply
#19
Good Job !
Reply
#20
Thanks
Reply
#21
v1.0.5 (Friday, 17 april 2015) :
- adjustments due to changes in the website: videos can be youtube vids now
Reply
#22
..and thanks again!
Reply
#23
Is anyone having trouble loadings video's? Whenever I select 'toppers' of 'filmpjes' the list is empty except for the 'next page' button.

I've tried 1.0.4 and 1.0.5 and I'm on Xbian.
Reply
#24
Same problem here. There must be some website changes...
Reply
#25
I have the same problem using the most recent versions of the plugin and OpenELEC.
Clicking "themas" also doesn't show anything.
No error shows on screen.
Can you have a look please?
My life is not complete like this ;-)
Reply
#26
There should be a new version coming out in a day or two that should fix the problems.
Reply
#27
For the guys that cannot wait, the fix is quite easy. Just add a cookie the the header of the request.
I changed the file located at:
C:\Users\[User]\AppData\Roaming\Kodi\addons\plugin.video.dumpert\resources\lib\dumpert_utils.py

Hope it will help. Thanks for the great addon.

Contents:
import zlib
import httplib
import urllib
import urllib2
import gzip
import StringIO
import urlparse

#
#
#
class HTTPCommunicator :
#
# POST
#
def post( self, host, url, params ):
parameters = urllib.urlencode( params )
headers = { "Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain", "Accept-Encoding" : "gzip", "Cookie" : "cpc=10" }
connection = httplib.HTTPConnection("%s:80" % host)

connection.request( "POST", url, parameters, headers )
response = connection.getresponse()

# Compressed (gzip) response...
if response.getheader( "content-encoding" ) == "gzip" :
htmlGzippedData = response.read()
stringIO = StringIO.StringIO( htmlGzippedData )
gzipper = gzip.GzipFile( fileobj = stringIO )
htmlData = gzipper.read()
# Plain text response...
else :
htmlData = response.read()

# Cleanup
connection.close()

# Return value
return htmlData

#
# GET
#
def get( self, url ):
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',
"Cookie" : "cpc=10" }
data = urllib.urlencode(values)
req = urllib2.Request(url, data, headers)
f = urllib2.urlopen(req)

# Compressed (gzip) response
if f.headers.get( "content-encoding" ) == "gzip" :
htmlGzippedData = f.read()
stringIO = StringIO.StringIO( htmlGzippedData )
gzipper = gzip.GzipFile( fileobj = stringIO )
htmlData = gzipper.read()

# Debug
# print "[HTTP Communicator] GET %s" % url
# print "[HTTP Communicator] Result size : compressed [%u], decompressed [%u]" % ( len( htmlGzippedData ), len ( htmlData ) )

# Plain text response
else :
htmlData = f.read()

# Cleanup
f.close()

# Return value
return htmlData

#
# Check if URL exists
#
def exists( self, url ):
try :
request = urllib2.Request( url )
request.get_method = lambda : 'HEAD'
response = urllib2.urlopen( request )
response.close()
return True
except :
return False
Reply
#28
I'm getting a "script failed" when using the above code
Reply
#29
That's because no one should put code on the forum
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#30
code corruption by html
Reply
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 7

Logout Mark Read Team Forum Stats Members Help
Dumpert.nl Video-Addon (dutch)0