Page 1 of 1

Dailymotion lua not working

Posted: 05 Aug 2012 01:17
by vikasgoyalgzs
Hi,

It seems dailymotion.com has changed their page. I am getting the following message when trying to open a video in VLC.

main info: stopping playback
lua error: Couldn't extract the video URL from dailymotion

Could you please fix the lua.

Thanks,
VGG

Re: Dailymotion lua not working

Posted: 05 Aug 2012 18:18
by vikasgoyalgzs
I have fixed the lua file. If someone is facing the same issue, please open dailymotion.lua and

replace this line
if string.match( line, "\"sequence\",")

with this line
if string.match( line, "\"sequence\"")

and it should start working.

Thanks
VGG

Re: Dailymotion lua not working

Posted: 05 Aug 2012 23:04
by Jean-Baptiste Kempf
Thx. will get fixed soon.

Re: Dailymotion lua not working

Posted: 22 Sep 2012 05:56
by J4lVl13
I am unable to stream dailymotion using VLC, but cannot find any threads specifically listing the necessary coding to replace it (much like the one posted for the recent youtube changes). Or should I be using the examples posted on the WikiVideoLan site about building "parse" playlists? Any help would be appreciated.

Re: Dailymotion lua not working

Posted: 13 Jul 2013 04:14
by artbio
Not working again!

Re: Dailymotion lua not working

Posted: 13 Jul 2013 15:35
by Jean-Baptiste Kempf
Fix it :)

Re: Dailymotion lua not working

Posted: 08 Aug 2013 17:36
by stefann
Hi Jean-Baptiste,

How did you fix it?

I am currently using VLC 2.0.8.a-1 on Linux and I think the function probe() in the script dailymotion.luac returns "false". I read the source code on the git repository (https://github.com/videolan/vlc/blob/ma ... motion.lua, I hope it's the last version) and I think that "string.match( vlc.peek( 2048 ), "<!DOCTYPE.*video_type" )", in the probe function, returns false because "2048" is not enought (anymore?) to catch the pattern "<!DOCTYPE.*video_type" )". Then in the parse function, "path = string.match( line, "\""..param.."\":\"([^\"]*)\"" )" retruns null because any of the keywords { "hd1080URL", "hd720URL", "hqURL", "sdURL" } are found (at least for the video I tried to read).

Thanks Jean-Baptiste if you can provide the fix :)

Re: Dailymotion lua not working

Posted: 13 Aug 2013 12:44
by Jean-Baptiste Kempf
Sorry, but there is more to that: autoURL is not enough...