Posts: 84
Joined: Aug 2009
Reputation:
0
Thanks for your reply.
Do you have any updated code for Daily motion video which I can use in the plug-in, as the source of the video file is different now from the previous one.
Please let me know.
Thanks
Posts: 2,710
Joined: Feb 2009
Reputation:
12
ppic
Skilled Python Coder
Posts: 2,710
i've tried to find it while doing my noob web series video plugin, but didn't manage to get a readeable link, if switch to another source.
all lead me to permission screen
Posts: 402
Joined: Apr 2008
Reputation:
1
Temhil
Skilled Python Coder
Posts: 402
yes, I think the last part of the url "auth=1270099898-83bb55f0f19e93f7aadd5d291838ba16" depend on the current session.
But the 1st part allow to get the video.
I got this url with a sniffer, but I didn't dig too much in order to see how they build it.
Posts: 843
Joined: Mar 2008
I remember that code from Mysoju try the below code from rev 6.
I haven`t checked it recently though.
Code:
try:
daily=re.compile('<param name="movie" value="http://www.dailymotion.com/swf/(.+?)"/>').findall(link)
req = urllib2.Request('http://www.dailymotion.com/video/%s'%daily[0])
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14')
response = urllib2.urlopen(req).read()
Lowres=re.compile('&video=(.+?)%40%40spark').findall(response)
Highres=re.compile('mini%7C%7C(.+?)%40%40h264"').findall(response)
addLink("%s %s - Lowres"%(nomne[0],name),urllib.unquote(Lowres[0]),info)
addLink("%s %s -Highres"%(nomne[0],name),urllib.unquote(Highres[0]),info)
except: pass
Posts: 84
Joined: Aug 2009
Reputation:
0
Voinage - When you get time, can you try to fix the code for Dailymotion ?
Thanks
Posts: 84
Joined: Aug 2009
Reputation:
0
Any update on code to play Daily motion videos ?