2015-06-16, 12:09
(2015-06-11, 04:53)dknlght Wrote: [ -> ]sorry for the long way but I've updated drama24h (which the site change it's url to hkdrama4u.com
Thanks, my family would be really happy.
(2015-06-11, 04:53)dknlght Wrote: [ -> ]sorry for the long way but I've updated drama24h (which the site change it's url to hkdrama4u.com
(2015-06-24, 01:57)wolfiee Wrote: [ -> ]Hi dknight,
I think I can get the script error for the azdrama.net installation. Any idea on what's went wrong?
(2015-07-26, 12:04)MyFavouriteDramas Wrote: [ -> ]Dear dknIght,
Firstly I would like to thank you for all the hard work you've put into this! Thank you thank you...
Lately drama24h are showing this mirror "videoting.se mirror 1" rather than the old "videobug.se mirror 1" and whenever I open it, the "drama24h error. Check the log for more information" came out.
Any help peeps?
elif (newlink.find("videobug") > -1):
link=urllib.unquote_plus(GetContent(newlink))
link=''.join(link.splitlines()).replace('\'','"')
media_url= ""
media_url = re.compile('load.{file:\s*"(.+?)"').findall(link)
if(len(media_url)==0):
media_url = re.compile('playlist:\s*\[\s*\{\s*url:\s*"(.+?)",').findall(link)
if(len(media_url)==0):
media_url = re.compile('{file:\s*"(.+?)"').findall(link)
if(len(media_url)==0):
media_url = re.compile('file:\s*"(.+?)"').findall(link)
if(len(media_url)==0):
media_url = re.compile('dll:\s*"(.+?)"').findall(link)
if len(media_url) > 0 and "http" not in media_url[0]:
media_url[0] = "http://videobug.se" + media_url[0]
if(len(media_url)==0):
media_url = re.compile('link:\s*"([^"]+?//[^"]+?/[^"]+?)"').findall(link)
if("http://" in Geturl(media_url[0])):
media_url[0] = Geturl(media_url[0])
vidlink = urllib.unquote(media_url[0].replace(' ', '+'))
--- old/default.py 2015-01-06 02:02:21.000000000 +0200
+++ default.py 2015-09-05 12:59:48.351516718 +0300
@@ -226,15 +226,22 @@
if strToken.find("http") != -1:
return strToken
-
def GetContent(url):
+ strresult=""
+ response=None
try:
- net = Net()
- second_response = net.http_GET(url)
- return second_response.content
- except:
- d = xbmcgui.Dialog()
- d.ok(url,"Can't Connect to site",'Try again in a moment')
+ if(response!=None):
+ connection.close()
+ req = urllib2.Request(url)
+ req.add_unredirected_header('User-Agent', 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)')
+ response = urllib2.urlopen(req)
+ strresult=response.read()
+ response.close()
+ except Exception, e:
+ print str(e)+" |" + url
+ if(response!=None):
+ connection.close()
+ return strresult
def playVideo(videoType,videoId):
url = ""
@@ -327,6 +334,8 @@
media_url= ""
media_url = re.compile('playlist:\s*\[\s*\{\s*url:\s*"(.+?)",').findall(link)
if(len(media_url)==0):
+ media_url = re.compile('{hd:\s*"(.+?)"').findall(link)
+ if(len(media_url)==0):
media_url = re.compile('{file:\s*"(.+?)"').findall(link)
if(len(media_url)==0):
media_url = re.compile('file:\s*"(.+?)"').findall(link)
@@ -338,7 +347,11 @@
media_url = re.compile('link:\s*"([^"]+?//[^"]+?/[^"]+?)"').findall(link)
if("http://" in Geturl(media_url[0])):
media_url[0] = Geturl(media_url[0])
- vidlink = urllib.unquote(media_url[0].replace(' ', '+'))
+ vidlink = urllib.unquote(media_url[0].replace(' ', '+'))
+ elif(len(media_url)>1):
+ vidlink = urllib.unquote(media_url[1].replace(' ', '+'))
+ else:
+ vidlink = urllib.unquote(media_url[0].replace(' ', '+'))
elif (newlink.find("play44") > -1):
link=GetContent(newlink)
link=''.join(link.splitlines()).replace('\'','"')