Dailymotion lua not working

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
vikasgoyalgzs
New Cone
New Cone
Posts: 2
Joined: 05 Aug 2012 01:14

Dailymotion lua not working

Postby vikasgoyalgzs » 05 Aug 2012 01:17

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

vikasgoyalgzs
New Cone
New Cone
Posts: 2
Joined: 05 Aug 2012 01:14

Re: Dailymotion lua not working

Postby vikasgoyalgzs » 05 Aug 2012 18:18

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Dailymotion lua not working

Postby Jean-Baptiste Kempf » 05 Aug 2012 23:04

Thx. will get fixed soon.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

J4lVl13
New Cone
New Cone
Posts: 1
Joined: 22 Sep 2012 05:28

Re: Dailymotion lua not working

Postby J4lVl13 » 22 Sep 2012 05:56

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.

artbio
Blank Cone
Blank Cone
Posts: 24
Joined: 02 Jan 2013 02:01
VLC version: 2.1.0
Operating System: Windows / Linux
Location: Portugal

Re: Dailymotion lua not working

Postby artbio » 13 Jul 2013 04:14

Not working again!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Dailymotion lua not working

Postby Jean-Baptiste Kempf » 13 Jul 2013 15:35

Fix it :)
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

stefann
New Cone
New Cone
Posts: 1
Joined: 08 Aug 2013 17:18

Re: Dailymotion lua not working

Postby stefann » 08 Aug 2013 17:36

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 :)

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Dailymotion lua not working

Postby Jean-Baptiste Kempf » 13 Aug 2013 12:44

Sorry, but there is more to that: autoURL is not enough...
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 44 guests