Playlist parser

Discuss your Lua playlist, album art and interface scripts.
Co6oJIb
New Cone
New Cone
Posts: 2
Joined: 29 Jul 2016 23:59

Playlist parser

Postby Co6oJIb » 30 Jul 2016 00:18

I'm trying to create custom playlist parser. It will be used for changing tittle of playlist item. This item is a stream through http by Livestreamer which is used for watching streams from twitch.tv. When i testing my parser i see in vlc console that none of the parsers was not even tried. Help me please. What i'm doing wrong?

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Playlist parser

Postby mederi » 31 Jul 2016 13:47

Do you correctly validate the path in probe() function? VLC always uses meta title if it is available during parsing/preparsing of playlist item.

Co6oJIb
New Cone
New Cone
Posts: 2
Joined: 29 Jul 2016 23:59

Re: Playlist parser

Postby Co6oJIb » 31 Jul 2016 21:23

Ok. But why VLC didn't try other parsers on this item?
Btw this is my code:

Code: Select all

function probe() return ( string.match( vlc.path, "127.0.0.1" ) ) end function parse() while true do name = "LCK" return { { path = path; name = name } } end end

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Playlist parser

Postby mederi » 03 Aug 2016 22:16

If I activate the VLC web interface (View > Add Interface > Web) and add its address in VLC playlist (http://127.0.0.1:8080) then there is a success in logs but the returned path is not valid.


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 7 guests