Add Song - Auto get info

Post a reply

Visual Confirmation

To prevent automated access and spam, you are required to confirm that you are human. Please place a check mark next to all images of monkeys or apes. If you cannot see any images, please contact the Board Administrator.

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: Add Song - Auto get info

Post by Peke » Sun Jun 26, 2005 1:33 pm

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.

Add Song - Auto get info

Post by gratajik » Sat Jun 25, 2005 4:58 pm

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

Top