Add Song - Auto get info

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

gratajik
Posts: 10
Joined: Tue Apr 19, 2005 11:40 pm
Contact:

Add Song - Auto get info

Post by gratajik »

I'm doing this to add a song:

Dim songData As New SDBSongData
songData.Path = "c:\test.mp3"
songData.UpdateDB

When doing this, is there some way to tell MM to figure out the details itself? Like file save, song name, genre, etc? (I'd assume by ID3 info). I could fill out each member, but for some fields I'd have to go mucking through the ID3 info myself, which I rather not have to do.

Thanks
-Greg
Peke
Posts: 18358
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Post by Peke »

I'm not 100% sure but try with:

Code: Select all

Dim TempSongData
Set TempSongData = SDB.NewSongData
TempSongData.Path = "c:\test.mp3"
TempSongData.MetadataFromFilename
If TempSongData.ReadTags Then
;Some Code
;...
End if
;Some Code
;...
; On End Write Songdata into File
If TempSongData.WriteTags then
;Some Code
;...
End IF
You Should Look Into Scripting Manual on Developer page.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
Post Reply