Import M3U 3.8 - Updated 26/10/2013
-
- Posts: 5559
- Joined: Wed Feb 07, 2007 11:07 pm
- Location: New Jersey, USA
- Contact:
Didn't this script used to have the feature of finding a match if the track was not in the library?
Nyn
Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins
Join Dropbox, the online site to share your files
Link to Favorite Scripts/Skins
Join Dropbox, the online site to share your files
Yes, it does find tracks if it's available. If it's not, it doesn't
In this case, I would like the track to be created, but greyed out.
I updated the code to add a special disk serial named [_notfound]. This way, I can find all tracks created by searching 'notfound' or going in the _notfound node.
Oh, and I added back the artist/title identification.
The problem is that the new created tracks (on disk [_notfound]) are not greyed
Anyone know why ?
In this case, I would like the track to be created, but greyed out.
I updated the code to add a special disk serial named [_notfound]. This way, I can find all tracks created by searching 'notfound' or going in the _notfound node.
Oh, and I added back the artist/title identification.
Code: Select all
If IgnoreExt Then
if InStrRev(line,".") <> 0 then
line = Left(line,InStrRev(line,".")-1)&"%"
else
line = line&"%"
end if
End If
...
If CreateNew Then
prog.Text = "Creating: "&mess
Dim itm : Set itm = Nothing
set itm = SDB.NewSongData
itm.ArtistName = mess
itm.Path = "[_notfound]\"&mess
itm.MetadataFromFilename
itm.UpdateDB
itm.UpdateArtist
itm.UpdateAlbum
list.AddTrack(itm)
End If
Anyone know why ?
@nynaevelan - my "Recreate M3U" script has a fuzzy matching algorithm to find renamed tracks, this script is generally for importing playlists containing tracks which have not moved.
@qwench - I don't think MM checks if they are inaccessible (greys them out) until you try to play them.
@qwench - I don't think MM checks if they are inaccessible (greys them out) until you try to play them.
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.
Re-exporting M3U
Hi,
This might be off subject but relates to the import and export of playlists and I have struggled to find a function or script that can do this....
I have created some playlists in MM and then exported them to M3U so I can use them on an external device. But is there any way to "refresh" the exported playlist so that when I make a change in MM it can be reflected in the M3U as well?
Even a simple "Refresh" option on the popup menu for the playlist would be start. I know I can use "Send To" but this always defaults to the default file name and not the M3U file name it came from...
Thanks for any pointers,
Steve
This might be off subject but relates to the import and export of playlists and I have struggled to find a function or script that can do this....
I have created some playlists in MM and then exported them to M3U so I can use them on an external device. But is there any way to "refresh" the exported playlist so that when I make a change in MM it can be reflected in the M3U as well?
Even a simple "Refresh" option on the popup menu for the playlist would be start. I know I can use "Send To" but this always defaults to the default file name and not the M3U file name it came from...
Thanks for any pointers,
Steve
Well the filename of the playlist is stored in the database so it could definitely be possible to write a script with a toolbar button (or something) which is enabled in this case and exports straight to this location without a popup.
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.
-
- Posts: 367
- Joined: Sun Aug 28, 2005 10:43 pm
OK. I need a little clarification.
Where is the complete script with this fix?
Does this script import the playlist and keep missing songs in the playlist?
-thanks
-thefaceman
Where is the complete script with this fix?
Does this script import the playlist and keep missing songs in the playlist?
-thanks
-thefaceman
qwench wrote:Yes, it does find tracks if it's available. If it's not, it doesn't
In this case, I would like the track to be created, but greyed out.
I updated the code to add a special disk serial named [_notfound]. This way, I can find all tracks created by searching 'notfound' or going in the _notfound node.
Oh, and I added back the artist/title identification.The problem is that the new created tracks (on disk [_notfound]) are not greyedCode: Select all
If IgnoreExt Then if InStrRev(line,".") <> 0 then line = Left(line,InStrRev(line,".")-1)&"%" else line = line&"%" end if End If ... If CreateNew Then prog.Text = "Creating: "&mess Dim itm : Set itm = Nothing set itm = SDB.NewSongData itm.ArtistName = mess itm.Path = "[_notfound]"&mess itm.MetadataFromFilename itm.UpdateDB itm.UpdateArtist itm.UpdateAlbum list.AddTrack(itm) End If
Anyone know why ?
This fix was never realised in an official version as it was one user's personal preference, not something that all users would want.
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.
New version (3.1) is now available to download from my website. Changes include...
- Fixed ignoring extensions when no extension
- Added option to add created tracks to the playlist
- Fixed open dialog always starting in my music folder
- Fixed ignoring extensions when no extension
- Added option to add created tracks to the playlist
- Fixed open dialog always starting in my music folder
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.
-
- Posts: 25
- Joined: Thu Oct 11, 2007 2:04 pm
- Location: California
Re: Import M3U 3.1 [MM2+3]
I'm trying to use this script to import a friend's playlist, and it keeps failing with a SQL error. It will import the first 20-30 songs, then I get this error. I've tried running it several times, same error, BUT it fails after a different number of tracks each time, anywhere from 20 to 30 tracks.
error #-2147418113 - SongsDB.SDBPlaylist
Error executing SQL statement "COMMIT" : SQL logic error of missing database (1,1)
FIle:"C\PROGRA~1\MEDIAM~3\Scripts\ImportM3U.vbs"'Line: 121, COlumn:10
CLick OK, then another error pop-up:
Error happend during script execution:
Error executing SQL statement "COMMIT" " SQL logic error or missing database (1,1)
I'm running MM 3.0.5.1187 on Windows XP, and the script version is 3.1.
error #-2147418113 - SongsDB.SDBPlaylist
Error executing SQL statement "COMMIT" : SQL logic error of missing database (1,1)
FIle:"C\PROGRA~1\MEDIAM~3\Scripts\ImportM3U.vbs"'Line: 121, COlumn:10
CLick OK, then another error pop-up:
Error happend during script execution:
Error executing SQL statement "COMMIT" " SQL logic error or missing database (1,1)
I'm running MM 3.0.5.1187 on Windows XP, and the script version is 3.1.
Re: Import M3U 3.1 [MM2+3]
Well this script shouldn't be necessary, you can just scan the folder with the M3U files and MM should import them itself.
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.
-
- Posts: 25
- Joined: Thu Oct 11, 2007 2:04 pm
- Location: California
Re: Import M3U 3.1 [MM2+3]
I DID try having MM scan in the m3u file, that created an empty playlist, nothing in it at all. At least the Import M3U script is able to get thru 20 or so songs before crashing - better than none at all from MM3 itself.
Any other suggestions?
Any other suggestions?
Re: Import M3U 3.1 [MM2+3]
My "Recreate M3U" script is more reliable and should help you import them.
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.
-
- Posts: 25
- Joined: Thu Oct 11, 2007 2:04 pm
- Location: California
Re: Import M3U 3.1 [MM2+3]
Thanks, that seems to be working. I'll post my comments on the Recreate script in it's forum.