Page 1 of 1
Wanting improved "Now Playing" info export
Posted: Sat Feb 24, 2018 5:51 pm
by JoePublic
I use the WinAmp AMIP plug-in to export info from my "Now Playing" track to a .txt file. When a new track starts playing, the txt file is overwritten with the new song's metadata, and that is exactly what I want it to do. It works fine but it is kind of limited in what info it will export. It provides Year, Song Title, and Artist (all of which I want), but I'd REALLY like to have the composer field as well. And yes, I need it written to a text file and not directly fed to another app (like Skype) or service (like Last.fm).
Does anyone know of a plug-in or other method I could use to accomplish that? I've searched but come up empty. Thanks!
Re: Wanting improved "Now Playing" info export
Posted: Tue Feb 27, 2018 3:50 am
by Peke
Here is small Auto Script I use to print CD Covers, It can be easily modified to export any MMW field you need and available in scripting.
Here is what it is available
http://www.mediamonkey.com/wiki/index.php/SDBSongData
Code: Select all
Sub OnStartup
Set OpenInSpekButton = SDB.UI.AddMenuItem(SDB.UI.AddToolbar("Player Tools"), 0, 0)
OpenInSpekButton.OnClickFunc = "Tracklist"
OpenInSpekButton.UseScript = Script.ScriptPath
OpenInSpekButton.Hint = SDB.Localize("Tracklist")
OpenInSpekButton.Caption = SDB.Localize("Tracklist")
End Sub
Sub Tracklist(arg)
Script.Reload(Script.ScriptPath)
Dim i, i2, LST, trackl, trackstr
set trackl = SDB.Tools.FileSystem.CreateTextFile("c:\temp\Tracklist.txt", True)
i2 = SDB.AllVisibleSongList.Count - 1
For i = 0 To i2
Set LST = SDB.AllVisibleSongList.Item(i)
trackstr = Right("0" & i+1 & ". ", 4)
trackstr = trackstr & LST.ArtistName
trackstr = trackstr & " - " & LST.Title
trackl.WriteLine(trackstr)
Next
trackl.Close
End Sub
Re: Wanting improved "Now Playing" info export
Posted: Wed Nov 19, 2025 5:53 am
by SashaD3
This is really helpful, Peke! The Auto Script you shared seems like the perfect way to get that custom export (like the Composer field) since it can grab any field from the SDBSongData.