Posts: 3
Joined: Mar 2014
Reputation:
0
Working again Thank you devs, this is one of my most used add ons. Awesome !
Posts: 495
Joined: Mar 2013
Reputation:
44
v1.0.4 (Thursday, 06 June 2014) :
- adjustments due to changes in the website: changed get-method
Posts: 495
Joined: Mar 2013
Reputation:
44
v1.0.5 (Friday, 17 april 2015) :
- adjustments due to changes in the website: videos can be youtube vids now
Posts: 4
Joined: Feb 2015
Reputation:
0
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.
Posts: 179
Joined: Nov 2010
Reputation:
0
lowfi
Senior Member
Posts: 179
Same problem here. There must be some website changes...
Posts: 2
Joined: May 2015
Reputation:
0
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 ;-)
Posts: 495
Joined: Mar 2013
Reputation:
44
There should be a new version coming out in a day or two that should fix the problems.
Posts: 1
Joined: May 2015
Reputation:
0
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
Posts: 3
Joined: Feb 2015
Reputation:
0
I'm getting a "script failed" when using the above code
Posts: 17,859
Joined: Jul 2011
Reputation:
371
That's because no one should put code on the forum