jonp wrote:I am using MM4 getting an error using this script.......
Error #-2147418113 - SongsDB.SDBatabase
Don't use WriteLock after ReadLock was acquired - it's potentionally dangerous (M:\Sources\MediaMonkey4\Comps\GenThread.pas, line 1295)
File: "C:\Program Files\MediaMonkey\Scripts\ImportM3U.vbs", Line: 284, Column: 10
I am also getting this error. I have seen it on both installations of MM4.03 that I have used on two computers; XP Pro WP3 and Win7 Home Premium. The M3U files are generated by MM "Export All Playlists" function. I have done this in order to move between computers. I had a working set of Playlists on one machine. I loaded MM on a 2nd machine and ran your scripts on the M3U files I copied over. Got the error consistently. Then, a couple of weeks later, I bought another PC, exported my Playlists from source, installed MM fresh, downloaded your script, copied over M3U files, ran your script and got the error right away.
On average the script can process about 25-40 entries and then it throws this error. As a workaround I have manually edited the M3U files. I take note of which file is the last processed, open the M3U, delete the lines that were already successfully imported, save the file, re-run the script on the same (edited) file and watch it do another batch and throw the error again.
I have about 2500 entries in a dozen or so M3U files. It's going to take me a couple of hours or more to manually hack the files to get them all in. Again.