
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
This plugin reads the tags "Title", "Artist" and "Album" of the currently played music, and writes into 5 text files ( np_album.txt | np_artist.txt | np_artist_title.txt | np_title.txt | np_radio.txt )
Note: if no "Title" as found, the file name is used.
Can be used together with any software that can read input from a text file, such as streaming software (OBS, OBS Studio...).
np_album.txt = Contains just the Album.
np_artist.txt = Contains just the Artist.
np_title.txt = Contains just the Title.
np_artist_title.txt = Contains the name of Artist and the Title in one line.
np_radio.txt = Contains the currently played music. Ideal if you listen a web radio. (If you not listen a web radio, identical to np_title.txt )
np_uri.txt = Contains the file location in URI format.
If you have other ideas for outputs TXT's, do not hesitate to proposed.
The TXT's files will be saved in the VLC user director which can be found in the following places :
Linux: ~/.local/share/vlc/
Windows: %APPDATA%/vlc
Mac OS X: /Users/%your_name%/Library/Application Support/org.videolan.vlc/
-------------------------
Installation Instructions
Place this file in the corresponding folder and restart VLC or reload plugin extensions.
Linux :
Current User: ~/.local/share/vlc/lua/extensions/
All Users: /usr/lib/vlc/lua/extensions/
Windows :
Current User: %APPDATA%/vlc/lua/extensions
All Users: %ProgramFiles%/VideoLAN/VLC/lua/extensions
Mac OS X :
Current User: /Users/%your_name%/Library/Application Support/org.videolan.vlc/lua/extensions/
All Users: /Applications/VLC.app/Contents/MacOS/share/lua/extensions/
1.5 - URI file location 2 years ago
Add "np_uri.txt" contains the file location in URI format.
1.5 - URI file location 2 years ago
Add "np_uri.txt" contains the file location in URI format.
1.4 - Web radio support 2 years ago
Add "np_radio.txt" contains the currently played music. (If you not listen a web radio, identical to np_title.txt)
(Thanks ronchristie52 for this tip)
1.3 - Clear TXT's if no track 3 years ago
*The TXT's are cleared if no track is played or found (Stop or end of playlist, but Pause keep the files).
1.2 - "Artist - Title" feature 3 years ago
*Add "np_artist_title.txt" containing the Artiste name and the Title in one line. *Code optimization.
1.1 - Fontion "Clear files" 3 years ago
*Add a fontion "Clear files", when you disable the plugin or left VLC, the TXT's files are cleared. *Add a msg's for debug.
moustiluigi
3 months ago
Report
10leej
9 months ago
I can get this to spawn the .txt files but it won't poplate them, not getting any errors in the log
Report
10leej
9 months ago
Report
boscotty
1 year ago
Report
un_pogaz
1 year ago
Report
ajthekj
1 year ago
io.write(item:metas()["filename"]))
Report
randomniichan
1 year ago
Any idea how can I fix this ? Thanks !
Report
gly-s
2 years ago
Thank you for making this extension, it's very helpful!
Report
VLCJNR
2 years ago
Report
un_pogaz
2 years ago
Report
nuklearapple
2 years ago
Report
un_pogaz
2 years ago
Report
nuklearapple
2 years ago
Report
tonton
2 years ago
Report
nuklearapple
2 years ago
you have no idea how long I was searching for this. Thank god.
Hey so I do not have any txt files from the out put. Can you help me with that?
Thanks
Report
nuklearapple
2 years ago
Report
VLCJNR
2 years ago
Further to this i see the output files now but the content is empty in the files. Mind you media is played via the VLC extension with OBS Studios.
Please help.
URGENT!!!
Report
un_pogaz
2 years ago
Um, unfortunately, it doesn't seem possible to activate an extension in this way
Lua scripts (like my extension) can only be activated by the GUI.
You have to launch VLC (standalone), activate the script. Then launch OBS (standalone) and read the texts (source GDI+)
The two software must work at the same time separately, sory.
If you discovered how to do it (in OBS) I would be interested too, thank you.
Report
VLCJNR
2 years ago
Report
un_pogaz
2 years ago
Report
BootlegNL
2 years ago
Now Playing: Artist - Title
Also, the string just gets repeated right after eachother, without spaces like this:
Artist - TitleArtist - TitleArtist - Title
Even if only some space is added between the strings would be a huge improvement. Thanks!-
Report
BootlegNL
2 years ago
Open the .lua file with notepad
Replace this string:
io.write(item:metas()["now_playing"]
With this edited string:
io.write(" Now Playing: " .. item:metas()["now_playing"])
I'm playing music with an internet radio stream through vlc so I edited the radio section of the code but I think this will work with any of the playing methods. Just make sure to edit the right section of the code.
Hope it helps!
Report
EdwardBackstrom
2 years ago
Report
geekpeter
2 years ago
Report
geekpeter
2 years ago
Report