Code: Select all
function descriptor()
return { title = "JTest", capabilities = {} }
end
function activate()
main()
end
function main()
local T = vlc.sd.add_node({title="Jamendo's Finest – Trending tracks playlist"})
if T == nil then return nil end
log("A")
if T.title == nil then return nil end
log("B")
end
function log( msg )
vlc.msg.dbg( "[JAMENDO] " .. msg )
end
I guess that’s all, ask if you need anything else.core debug: adding services_discovery lua{sd='JTest',longname='JTest'}...
core debug: looking for services_discovery module matching "lua": 8 candidates
core debug: set config option: lua-sd to JTest
core debug: set config option: lua-longname to JTest
core debug: using services_discovery module "lua"
core debug: Adding Jamendo's Finest – Trending tracks playlist in (null)
lua debug: [JAMENDO] A
lua debug: LuaSD script loaded: C:\Dateisammlung\Programm_Install\vlc-2.2.3\lua\sd\JTest.luac
core debug: meta ok for (null), need to fetch art
core debug: looking for meta fetcher module matching "any": 1 candidates
lua debug: Trying Lua scripts in C:\Users\<Username>\AppData\Roaming\vlc\lua\meta\fetcher
lua debug: Trying Lua scripts in C:\Dateisammlung\Programm_Install\vlc-2.2.3\lua\meta\fetcher
lua debug: Trying Lua playlist script C:\Dateisammlung\Programm_Install\vlc-2.2.3\lua\meta\fetcher\tvrage.luac
lua debug: skipping script (unmatched scope) C:\Dateisammlung\Programm_Install\vlc-2.2.3\lua\meta\fetcher\tvrage.luac
core debug: no meta fetcher modules matched
core debug: searching art for Jamendo's Finest – Trending tracks playlist
core debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\Users\<Username>\AppData\Roaming\vlc\lua\meta\art
lua debug: Trying Lua scripts in C:\Dateisammlung\Programm_Install\vlc-2.2.3\lua\meta\art
lua debug: Trying Lua playlist script C:\Dateisammlung\Programm_Install\vlc-2.2.3\lua\meta\art\00_musicbrainz.luac
lua debug: skipping script (unmatched scope) C:\Dateisammlung\Programm_Install\vlc-2.2.3\lua\meta\art\00_musicbrainz.luac
lua debug: Trying Lua playlist script C:\Dateisammlung\Programm_Install\vlc-2.2.3\lua\meta\art\01_googleimage.luac
lua debug: skipping script (unmatched scope) C:\Dateisammlung\Programm_Install\vlc-2.2.3\lua\meta\art\01_googleimage.luac
lua debug: Trying Lua playlist script C:\Dateisammlung\Programm_Install\vlc-2.2.3\lua\meta\art\02_frenchtv.luac
lua debug: skipping script (unmatched scope) C:\Dateisammlung\Programm_Install\vlc-2.2.3\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script C:\Dateisammlung\Programm_Install\vlc-2.2.3\lua\meta\art\03_lastfm.luac
lua debug: skipping script (unmatched scope) C:\Dateisammlung\Programm_Install\vlc-2.2.3\lua\meta\art\03_lastfm.luac
core debug: no art finder modules matched
core debug: art not found for Jamendo's Finest – Trending tracks playlist
First edit: I should probably add that I had nearly zero exposure to Lua before I tried working on the script, however, I have quite a bit of experience in C++ and I’d claim to have decent knowledge of, err, general concepts of programming. I already successfully tweaked the default one to better fit my needs, it only broke when I pulled node creation out from add_playlist directly into main and I just can’t see why.
For reference, the default script, node creation on line 63.