un-pogaz / Now-Playing-in-Texts

VLC Lua Extensions https://www.opendesktop.org/p/1172613
GNU General Public License v3.0
22 stars 7 forks source link

filename1 not appearing in .txt files? #5

Closed Thexterax closed 1 year ago

Thexterax commented 1 year ago

Hey there, trying to get the filename without extensions but I can't see "filename1". It's not showing up in %appdata%\Roaming\vlc

Am I doing something wrong?

un-pogaz commented 1 year ago

1) Be sure to use the last version. 2) Please, could you share with me the code/txt of your custome file. And eventualy, the expected file name. 3) There are a debug file named "np_metadata.txt" that contain all usable metadata/tag name for the curent track played. If filename1 doesn't appear in this file, then you couldn't use it (although it seems very unlikely)

Thexterax commented 1 year ago

I am using the latest version.

What do you mean with custome file & expected file name?

np_metadata.txt has "{filename1}:" yes.

Am I supposed to change the .lua file to get the filename1 to show up? If yes, please advice on how to do so.

I was assuming there would be a np_filename1.txt show up with this extension. if this doesn't happen automaticly. please tell me how to get it to work.

un-pogaz commented 1 year ago

No, you don't need to edit the lua.

Now Playing in Texts integrates a system of custom files.

For you, you just need to create a file "np_custom.txt" with this text inside {filename1} and a file "np_custom_out.txt" will be created with the file name, without extension.

To learn more about the custom file system, I recommend you to read the doc "Now Playing in Texts - doc.xhtml" download (open the file i your web brower)

(And nope, Now Playing in Texts does not create a np_filename1.txt. If he had to create a file for each metadata, it would be very quickly the mess in your folder with full of file everywhere, hence the creation of the system for custom files)

Thexterax commented 1 year ago

Ok. Thank you very much for the detailed information. it's working now. It was not clear to me that I had to create a custom.txt file.

Thanks!