After many initial runs, here is the 'release' version 1.000 of my EarliestDateDock script. It is a dockable panel that automatically grabs the earliest release date of the currently playing song, displaying the search results. It also auto-saves the date if it finds a match. You can always select another match from the returned list if the auto selection is incorrect. I was looking for a script like this for a long time...after reading many posts and downloading many promising scripts, I decided to make my own.

NOTE: You will need to enter your discogs API key in the panel before it will work properly.

'This script will display a dockable window that shows the searched release dates from discogs,'will automatically select and save the earliest exact match to date only''made by yhsiuqs'email to ubersquishy at gmail dot com

Public Const iMatchesPerSong = 7

Public APIKeyPublic XMLdoc, XMLdoc2Public SrchTxt, SrchTypePublic aSongMatchLinks'' the first fields in the last Publicension is an integer showing the heirarchy of the release year'' 1 = earliest release year from all results, is an exact match' 2 = earliest release year from all results, not an exact match' 3 = earliest release year from exact matches' 4 = earliest release year from non-exact matches' 5 = later release, is an exact match' 6 = later release, is not an exact match'Public aListPublic xTemp,xDataPublic fMain,bStartStop,bApply,lvMain,cOptions,lProgressPublic oReleasePublic aTrackListPublic iArrayIndex1Public iArrayIndex2Public aReleaseLinks()Public bRunFlagPublic fProgressPublic bChecked

end if end if EvalResults end if end if else LblCurrent.Caption = "Please enter a valid discogs API key." end ifEnd Sub

Sub EvalResults Dim x for x = 1 to imatchespersong if rbuttons(x-1).common.visible = true then if pnl.common.childcontrol("r" & x).checked = true then if right(rbuttons(x-1).caption,4) <> "date" then 'there is a date xdata.year = cint(right(rbuttons(x-1).caption,4)) end if exit for end if end if next xdata.custom5 = "Date Corrected" xdata.updateDBEnd Sub

Alright, I wanted a quick solution, so I modified the code to just show the current saved date against the earliest retrieved date. It doesn't start automatically, you will need to hit the start button. Also, I can't get the screen to update every time it populates the treeview with another item...any help would be appreciated.

Let me know what you think...

***See first post for updated code***

Last edited by yhsiuqs on Thu Apr 01, 2010 11:25 am, edited 1 time in total.

How do you make sure the earliest year within the years is correct for that particular track? Auto tagging with the exact discogs release would be accurate but this doesn't looks promising since discogs search results are not very precise...

Alright, I have updated this to just search out the earliest release date of the currently playing song. It is now dockable as well. You will need to input your API key from discogs before it will work.

***See first post for updated link***

Just copy the file in the link to the 'Scripts\Auto' folder in the MediaMonkey directory. It isn't perfect, but I find it works better than anything out there that I've found.

Let me know what you think...

Here is the code:

***See first post for updated code***

Last edited by yhsiuqs on Thu Apr 01, 2010 11:26 am, edited 1 time in total.

I have sorted through 20 or 30 song files so far, and this script has been right on with its date matches (doing it automatically-nice). I have been looking for a script to do exactly this for a long time. Great script yhsiuqs!!!It took a second to realize i needed to paste the discogs key into the input field in the dockable window.

adamg wrote:I have sorted through 20 or 30 song files so far, and this script has been right on with its date matches (doing it automatically-nice). I have been looking for a script to do exactly this for a long time. Great script yhsiuqs!!!It took a second to realize i needed to paste the discogs key into the input field in the dockable window.

This has great potential to become one of my favorite scripts!

Thanks for the feedback...I am sure I will eventually make it look better, but it does the job!

Okay...I updated the script to show you the search results. It will still choose the earliest release date, but now it will show you what is was before as well as the potential (and selected) results. It will also save a 'Date Corrected' text in the Custom5 field, so you will know what has been fixed already.

I am still trying to figure out how to make it so you can choose a different result if you didn't like the automatic choice, but it gives me an error...any help would be appreciated!

Here's the link to the file - once again place it in the 'Scripts\Auto' folder of the MediaMonkey install directory.

be able to update mp3s in bulkbe able to choose i.e. 'apply' the change, as opposed to it automatically applying the changesave the old dat in another 'selectable' tag when it overwrites itbe able to update year without having to play the song

Might seem like I'm complaining, but I'm not....this is an absolutely wonderful script and a million times more than what i could create (which is nothing at all!!), but for it to be an absolute winner, it just needs a bit more control from the user.