Dailymotion video's not working

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
sansat Offline
Member
Posts: 84
Joined: Aug 2009
Reputation: 0
Post: #1
Hello ,

I am not able to play Dailymotion videos via XBMC. It looks like they have changed the video file to .mp4 with source of video files as below:

http://proxy-58.dailymotion.com/video/59...c0&cache=0

http://proxy-69.dailymotion.com/video/79...1b&cache=0

Any idea on how to play videos from dailymotion ? Does it work with any new code ?

Please help

Thanks
find quote
Beenje Offline
Team-XBMC Developer
Posts: 297
Joined: Feb 2009
Reputation: 3
Location: Sweden
Post: #2
sansat Wrote:Any idea on how to play videos from dailymotion ? Does it work with any new code ?

Yes, this has been solved by updating ffmpeg :-)
Done in r28729.
But svn trunk is still unstable (especially for plugins). The best is probably to wait until the addons part is ready.

xbmc.log: /Users/<username>/Library/Logs/xbmc.log
Always read the XBMC online-manual, FAQ and search the forum before posting.
For troubleshooting and bug reporting please make sure you read this first.
find quote
sansat Offline
Member
Posts: 84
Joined: Aug 2009
Reputation: 0
Post: #3
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
find quote
Beenje Offline
Team-XBMC Developer
Posts: 297
Joined: Feb 2009
Reputation: 3
Location: Sweden
Post: #4
sansat Wrote: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.

I'm not parsing dailymotion directly.
I'm just getting a dailymotion link (like the one in your first post) while parsing another website because that's where the videos are hosted.
It's a french website (arretsurimages.net) that requires a subscription. Probably not very high audience among XBMC users :-) Will try to release it as an addon when I'm done.
But don't think this code would help you.

xbmc.log: /Users/<username>/Library/Logs/xbmc.log
Always read the XBMC online-manual, FAQ and search the forum before posting.
For troubleshooting and bug reporting please make sure you read this first.
find quote
sansat Offline
Member
Posts: 84
Joined: Aug 2009
Reputation: 0
Post: #5
Thanks for your reply.

I used to use below code in my plugin to get video from dailymotion site, but after the change done by dailymotion, below code does not get me the source of video, so was wondering if any change can be done to below code to get the source of video ?

Code:
#DAILYMOTION
                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()
                                match=re.compile('url=rev=.+?&lang=en&callback=.+?&preview=.+?&video=(.+?)%40%40spark').findall(response)
                                print match[0]
                                addLink('Play '+name,urllib.unquote(match[0]),"")

Please let me know.

Thanks
find quote
ppic Offline
Skilled Python Coder
Posts: 2,711
Joined: Feb 2009
Reputation: 11
Location: France idf
Post: #6
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

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find quote
Temhil Offline
Skilled Python Coder
Posts: 396
Joined: Apr 2008
Reputation: 1
Location: Canada
Post: #7
Here a valid video URL I found:
http://proxy-04.nyc.dailymotion.com/18/8...291838ba16

[Image: passionxbmc_signature.png]
_____________________________

Repositories Installer: select and install unofficial repositories / TAC.TV: watch videos on TAC.TV
Installer Passion-XBMC: Download and Install Add-ons (pre-Dharma only)

[Image: project_thin_badge.gif]
find quote
ppic Offline
Skilled Python Coder
Posts: 2,711
Joined: Feb 2009
Reputation: 11
Location: France idf
Post: #8
i've got error:
Quote:You don't have permission to access /18/848x480/h264/21324247.h264 on this server.

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find quote
Temhil Offline
Skilled Python Coder
Posts: 396
Joined: Apr 2008
Reputation: 1
Location: Canada
Post: #9
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.

[Image: passionxbmc_signature.png]
_____________________________

Repositories Installer: select and install unofficial repositories / TAC.TV: watch videos on TAC.TV
Installer Passion-XBMC: Download and Install Add-ons (pre-Dharma only)

[Image: project_thin_badge.gif]
find quote
Beenje Offline
Team-XBMC Developer
Posts: 297
Joined: Feb 2009
Reputation: 3
Location: Sweden
Post: #10
sansat Wrote:Thanks for your reply.

I used to use below code in my plugin to get video from dailymotion site, but after the change done by dailymotion, below code does not get me the source of video, so was wondering if any change can be done to below code to get the source of video ?

One thing you can try is to look for the iphone video.
If you have a link like http://www.dailymotion.com/swf/<id>, get the <id> (like in your code) and try to open http://iphone.dailymotion.com/video/<id>
On that page you should be able to get the video link with something like:
Code:
BeautifulSoup(html).find(type="video/x-m4v")['href']
You won't get the best quality video available, but you get around the flash problem.

xbmc.log: /Users/<username>/Library/Logs/xbmc.log
Always read the XBMC online-manual, FAQ and search the forum before posting.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Voinage Offline
Banned
Posts: 846
Joined: Mar 2008
Location: England
Post: #11
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
find quote
sansat Offline
Member
Posts: 84
Joined: Aug 2009
Reputation: 0
Post: #12
Thanks for your reply.

I tried your code but it does not bring the actual video file.

For example- I tried to get actual daily motion video link for below link

Code:
http://interval.in/videos.php?id=142030

Which I know with the help of downloadhelper is

Code:
http://proxy-03.nyc.dailymotion.com/video/755/076/21670557:mp4_h264_aac.mp4?auth=1271198159-a917efe7d50b97f85a84f9c88ae41dbe

But in code it does not bring it ..

Any other guidance ?

Thanks
find quote
sansat Offline
Member
Posts: 84
Joined: Aug 2009
Reputation: 0
Post: #13
Just as an update, I tried to play mysoju rev6 to check if it plays dailymotion and it doesn't.

I tried to play videos from below link which plays online, but it does not show in xbmc

Code:
http://www.mysoju.com/100-senorita/

Hope you can find a fix for it.

Thanks
find quote
sansat Offline
Member
Posts: 84
Joined: Aug 2009
Reputation: 0
Post: #14
Voinage - When you get time, can you try to fix the code for Dailymotion ?

Thanks
find quote
sansat Offline
Member
Posts: 84
Joined: Aug 2009
Reputation: 0
Post: #15
Any update on code to play Daily motion videos ?
find quote
Post Reply