Proper use of set_meta?

Discuss your Lua playlist, album art and interface scripts.
basaquer
New Cone
New Cone
Posts: 3
Joined: 29 Nov 2012 05:03

Proper use of set_meta?

Postby basaquer » 29 Nov 2012 05:24

I'm trying to use lua to set meta data on an mp3 file. I had read in the README that there is a set_meta function for the input module, when I call this, it appears to change the meta data key for the attribute I wish to set. However, this seems to only be a temporary change, neither the file itself nor the playlist file retains the changed meta data.

I was hoping there was some way that setting the meta data could be kept. Is there some additional function I would need to call to save the meta data changes, or otherwise is there another function that I would need to call instead?

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Proper use of set_meta?

Postby mederi » 03 Dec 2012 14:57

I do no think there is a way to save changed metadata straight in multimedia file. But you can manually save a playlist with changed metadata from VLC menu: Media > Save Playlist to File... > .xspf. If you open the playlist in VLC, the new metada stored in playlist file is ignored and VLC just reads metadata from multimedia files. Then I really do not know what is the temporary change of metadata good for.

--- EDIT ---
By the way: viewtopic.php?f=7&t=106236#p360372
:)

basaquer
New Cone
New Cone
Posts: 3
Joined: 29 Nov 2012 05:03

Re: Proper use of set_meta?

Postby basaquer » 04 Dec 2012 04:53

Hmmm, looking at the meta data, it doesn't store the rating into the playlist file, even though if I do a set_meta for another field, such as artist, that does get stored into the playlist file and pulled up the next time the playlist is loaded. It seems that the functionality for this is not set up correctly?

LakeyC
New Cone
New Cone
Posts: 1
Joined: 05 Aug 2013 23:15

Re: Proper use of set_meta?

Postby LakeyC » 05 Aug 2013 23:17

I'm trying to use lua to set meta data on an mp3 file. I had read in the README that there is a set_meta function for the input module, when I call this, it appears to change the meta data key for the attribute I wish to set. However, this seems to only be a temporary change, neither the file itself nor the playlist file retains the changed meta data.

I was hoping there was some way that setting the meta data could be kept. Is there some additional function I would need to call to save the meta data changes, or otherwise is there another function that I would need to call instead?
Also unable to permenantly change the meta tags using set_meta, did you manage to solve this problem?


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 13 guests