Is there any way I can create a SongData object if all I have is the track ID? I know that I can find the database record using SQL, but I'd like to get a SongData object so that I have access to all methods and fields easily without laboring over the SQL.
Thanks.
SongData from track ID?
Moderators: Gurus, Addon Administrators
Re: SongData from track ID?
Yes, use QuerySongs:
http://www.mediamonkey.com/wiki/index.p ... QuerySongs
See other scripts for examples, just search for querysongs.
http://www.mediamonkey.com/wiki/index.p ... QuerySongs
See other scripts for examples, just search for querysongs.
Advanced Duplicate Find & Fix Find More From Same - Custom Search. | Transfer PlayStat & Copy-Paste Tags/AlbumArt between any tracks.
Tagging Inconsistencies Do you think you have your tags in order? Think again...
Play History & Stats Node Like having your Last-FM account stored locally, but more advanced.
Case & Leading Zero Fixer Works on filenames too!
All My Scripts
Tagging Inconsistencies Do you think you have your tags in order? Think again...
Play History & Stats Node Like having your Last-FM account stored locally, but more advanced.
Case & Leading Zero Fixer Works on filenames too!
All My Scripts
Re: SongData from track ID?
Great! Thank you.
Re: SongData from track ID?
Yes. Thank you too....
SDB.Database.QuerySongs (QueryWithoutSelectFrom)
Just filter your query so there is no SELECT or FROM Clauses and it is ok.... This is what I do
SDB.Database.QuerySongs (QueryWithoutSelectFrom)
Just filter your query so there is no SELECT or FROM Clauses and it is ok.... This is what I do
songsQuery = .... Your Full Query....
sQueryArr = Split(songsQuery, "WHERE")
sQueryArr(0) = ""
sQueryArr(1) = " Songs.IDAlbum = " & "{{NewAlbumID}}" & " AND " & sQueryArr(1)
songsQuery = Join(sQueryArr, "WHERE")
songsQuery = Right (songsQuery, Len(songsQuery) - Len("WHERE"))
Set SongsP = SDB.Database.QuerySongs (songsQuery)
' Do Until SongsP.EOF
SDB.Player.PlaylistAddTrack(songsP.Item)
songsP.next
' Loop