How to get SDBSongData from a path
Moderators: Gurus, Addon Administrators
-
CarlitoGil
- Posts: 294
- Joined: Sun Sep 07, 2008 10:46 am
- Location: Dominican Republic
- Contact:
How to get SDBSongData from a path
Say I have any given path, how do I get it's SDBSongData object only if it is in the database?
iTunesMonkey + Acoustid – Find metadata from iTunes and Acoustid
Re: How to get SDBSongData from a path
I've not got the code on me write now but my "Recreate M3U" script does this. The SQL for QuerySongs is something like...
"AND Songs.Path = ':\Music\Artist\Album\Track.mp3' "
...or you can use LIKE if you only have part of it. The path does not include the drive letter though, this is stored in a separate table.
"AND Songs.Path = ':\Music\Artist\Album\Track.mp3' "
...or you can use LIKE if you only have part of it. The path does not include the drive letter though, this is stored in a separate table.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.