Import M3U 3.8 - Updated 26/10/2013

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

thefaceman
Posts: 367
Joined: Sun Aug 28, 2005 10:43 pm

Re: Import M3U 3.6 - Updated 17/02/2011

Post by thefaceman »

Thanks for the feedback. I am a little frustrated that I cannot get my playlists back into my new version of MM3 (old computer failed). I had you customize a script for me at one point in time.
It seems at the moment that when I Import the files are showing the correct path to the imported file, but when I click on these newly created links they are 'broken'.

Althought I will post a 'help request' in the "Duplicate Report" thread to see how I can use it to my advantage. I have used it before but not for this usage.

Here is my challenge. Maybe someone knows what I am doing wrong.

I have the current MM version. I have about 80000 music files. I have about 3000 .m3u playlists.

I want to import my playlists. During this import process I would like the following to happen

- ALL of the listing in the m3u file be listed in the playlist (even if it is not in my database). The 'missing files' are understood to be 'broken'

- When I import the playlist that it will not create a DUPLICATE listing of the song in my database and ONLY link to the existing file that it matches.

- When I import the m3u it will not create a duplicate in the playlist (this is NOT critical) but it seems with the ReCreate and Import scripts at the moment it allows multiple listings to the SAME file location and the 'warn when adding duplicates' option does not prevent them from being added to the playlist.

- I want the 'artist and title' fields to be created. The rest of the field can be ignored, but not required to be ignored, but having the complete artist and title' listed is important.

OK, end of my ranting. Thanks again for your tolerance of me.
jonp
Posts: 105
Joined: Tue Jan 01, 2008 8:08 am
Location: Australia

Re: Import M3U 3.6 - Updated 17/02/2011

Post by jonp »

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

Any ideas?
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Import M3U 3.6 - Updated 17/02/2011

Post by trixmoto »

Sorry, never seen an error like that, I'll try to replicate.
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.
jonp
Posts: 105
Joined: Tue Jan 01, 2008 8:08 am
Location: Australia

Re: Import M3U 3.6 - Updated 17/02/2011

Post by jonp »

Thanks - no rush.
BKKKPewsey
Posts: 361
Joined: Sun Jun 05, 2011 10:45 am
Location: United Kingdom

Re: Import M3U 3.6 - Updated 17/02/2011

Post by BKKKPewsey »

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

Any ideas?
Just to let you know I am getting virtually the same message after the script processes about 6 tracks.
Again using MM4 [1459] with Vista
Everyone has the right to be stupid Image but some abuse the privilege
abhiroopb
Posts: 68
Joined: Thu Feb 25, 2010 9:26 pm

Re: Import M3U 3.6 - Updated 17/02/2011

Post by abhiroopb »

I'm getting the exact same error as above. It was working fine in MM 3.2, but I just upgraded to MM4.

Thanks!
sean
Posts: 91
Joined: Thu Nov 03, 2011 10:29 am

Re: Import M3U 3.6 - Updated 17/02/2011

Post by sean »

Something is not working....

I used you other script, batch m3u creator, and made a bunch of m3u's on my desktop.

Then I try to run the script to import those m3u's into MM, but every time I get an error message.

Image
And when I press OK, it gives me this one as well


Image
Image
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Import M3U 3.6 - Updated 17/02/2011

Post by trixmoto »

Looks like you've got Unicode characters in your file paths. Unfortunately VBScript can't handle UTF-8 (which most programs use for Unicode) so that's probably what is causing the problem.
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.
lordbear
Posts: 20
Joined: Wed Jan 20, 2010 8:42 pm

Re: Import M3U 3.6 - Updated 17/02/2011

Post by lordbear »

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

Any ideas?
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.
rably
Posts: 1
Joined: Tue Aug 25, 2009 1:02 pm

Re: Import M3U 3.6 - Updated 17/02/2011

Post by rably »

I was able to stop getting the error by adding another commit inside the "while not trax.EOF" loop of the vbs file. The playlist looks like it imported completely.
lordbear
Posts: 20
Joined: Wed Jan 20, 2010 8:42 pm

Re: Import M3U 3.6 - Updated 17/02/2011

Post by lordbear »

I am a relative neophyte at database 'stuff', but that sounds like it would definitely help. My observation has been that the script was 'getting ahead of itself'. Or maybe falling behind. Either way, making sure that the transaction is complete (committed), before moving to the next, smells right.

I think I'll wait a few days to see if Trix confirms your fix and revs the script all official-like before I attempted to hack the code myself. I'm not a coder/scripter, and I know near-zero VBS (it is VBS?) but I can tweak other people's work in a few script languages with some success. :)

Thanks for sharing what you found!
-- Bear
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Import M3U 3.6 - Updated 17/02/2011

Post by trixmoto »

I've not had a chance to have a look at the code, but I've added this to my list to investigate.
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.
lordbear
Posts: 20
Joined: Wed Jan 20, 2010 8:42 pm

Re: Import M3U 3.6 - Updated 17/02/2011

Post by lordbear »

I hope you are able to quickly and easily spot a fix. :)
rseery
Posts: 8
Joined: Tue Feb 17, 2009 12:29 pm

Re: Import M3U 3.6 - Updated 17/02/2011

Post by rseery »

I get this error trying to use the latest version of the script.

Image

Image

Also,

I was getting the error above where you said there were unicode characters in the paths. I took a lot of stuff out of the library and that error went away, but how can I find and fix these bad characters?

Thanks for all your fine work!

Bob
jh006

Re: Import M3U 3.6 - Updated 17/02/2011

Post by jh006 »

rably, could you explain what you mean??? i don't know how or where to add a "commit" i can see the one in the loop, but keep in mind i do not know anything about adjusting scripts, i just can't stand having to retry the script more than 20 times to import 1 playslist,
Post Reply