Page 1 of 1

Playlist parser

Posted: 30 Jul 2016 00:18
by Co6oJIb
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?

Re: Playlist parser

Posted: 31 Jul 2016 13:47
by mederi
Do you correctly validate the path in probe() function? VLC always uses meta title if it is available during parsing/preparsing of playlist item.

Re: Playlist parser

Posted: 31 Jul 2016 21:23
by Co6oJIb
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

Re: Playlist parser

Posted: 03 Aug 2016 22:16
by mederi
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.