VLC extension help
Posted: 30 Aug 2016 00:29
Hello, i'm making a VLC extension in Lua to retrieve the name of the movie currently playing and saving it to a .txt file.
I am new to Lua and to programming for VLC so i'm kinda flying blind here.
This is my code: http://pastebin.com/ccTtjupq
Its based on both these extensions:
http://addons.videolan.org/content/show ... ent=174451
http://addons.videolan.org/content/show ... ent=160493
In broad terms it
-finds the currently playing file name,
-does a search of portitle.com of that filename (that site outputs the most probable Movie Title)
-downloads the source code for the resulting output
-saves the sub string containing the movie name to a .txt file that later can be picked up by other streaming software like OBS.
The code seems to compile fine on SciTE but i get a "lua error: Could not activate extension!" on vlc messages.
I think i might have a buffer size problem for my variable at the point where i download the source code of Portile but i dunno.
Any ideas?
If not thank you for reading through anyway =]
Also first post (Hello again!), didn't see an introduction forum, hope its all right.
I am new to Lua and to programming for VLC so i'm kinda flying blind here.
This is my code: http://pastebin.com/ccTtjupq
Its based on both these extensions:
http://addons.videolan.org/content/show ... ent=174451
http://addons.videolan.org/content/show ... ent=160493
In broad terms it
-finds the currently playing file name,
-does a search of portitle.com of that filename (that site outputs the most probable Movie Title)
-downloads the source code for the resulting output
-saves the sub string containing the movie name to a .txt file that later can be picked up by other streaming software like OBS.
The code seems to compile fine on SciTE but i get a "lua error: Could not activate extension!" on vlc messages.
I think i might have a buffer size problem for my variable at the point where i download the source code of Portile but i dunno.
Any ideas?
If not thank you for reading through anyway =]
Also first post (Hello again!), didn't see an introduction forum, hope its all right.