Page 1 of 1

Known Album Unknown Tracknr

Posted: Mon Oct 06, 2003 4:41 pm
by Hixbb
I have many MP3 albums that don't contain tracknrs. To identify these there is currently no option in MM. Since I only know about Access-Programming i wrote this quick'n'dirty Access-script that creates a new playlist containing files with album but without tracknr.
I don't know if it helps somebody, but here it is:
To use it, you have link the DAO-library in MediaMonkey.mdb.
It accesses the Database directly, so maybe you want to make a backup of it before using it.
Using at own risk.



Function CreatePlaylist()
Dim dbs As DAO.Database
Set dbs = CurrentDb
Dim rst, rst2 As DAO.Recordset
Set rst = dbs.OpenRecordset("playlists")
Dim id, order As Long
order = 0
'add new Playlist
With rst
.AddNew
.Fields(1) = "missing Tracknr."
.Fields(2) = 0
id = .Fields(0)
.Update
End With
Dim strSQL As String
strSQL = "SELECT ID FROM Songs WHERE IDAlbum > 0 AND SongOrder < 0"
Set rst = dbs.OpenRecordset(strSQL)
Set rst2 = dbs.OpenRecordset("PlaylistSongs")

With rst
If Not .EOF Then
Do Until .EOF
With rst2
.AddNew
.Fields(1) = id
.Fields(2) = rst.Fields(0)
.Fields(3) = order
.Update
order = order + 1
End With
.MoveNext
Loop
End If
End With



End Function

Hixbb

Track# field missing in search

Posted: Thu Feb 05, 2004 4:52 pm
by Lowlander
Well it seems MM would be able to this with the advanced search if the track # field would be searchable.