Hi trixmoto,
This is a very nice script and very usefull for me.
I was able to run it with MM3 by only changing two lines in the script.
First Change (line 214) :
- Code: Select all
Dim sql : sql = "SELECT Songs.ID FROM (Songs INNER JOIN Albums ON Songs.IDAlbum = Albums.ID) INNER JOIN Artists ON Albums.IDArtist = Artists.ID"
in
- Code: Select all
Dim sql : sql = "SELECT Songs.ID FROM Songs INNER JOIN Albums ON Songs.IDAlbum = Albums.ID INNER JOIN Artists ON Albums.Artist = Artists.Artist"
Second Change (line 248) :
- Code: Select all
sql = "SELECT Songs.ID FROM (Songs INNER JOIN Albums ON Songs.IDAlbum = Albums.ID) INNER JOIN Artists ON Albums.IDArtist = Artists.ID"
in
- Code: Select all
sql = "SELECT Songs.ID FROM Songs INNER JOIN Albums ON Songs.IDAlbum = Albums.ID INNER JOIN Artists ON Albums.Artist = Artists.Artist"
I'm not sure if this is correct, but it's working. I found out by using the sqlviewer script !!!
I'd like to ask you if it's possible to add 1 extra feature to the script, since i'm using it now together with your importM3U script to make playlists of the yearly top100 charts which I have in excel.
The songs are numbered (of course) from 1 to 100
The problem I have is not directly in the recreateM3U script since it works perfect. But suppose I have a song more than once in my database f.e.
on a live album, greatest hits album and normal album.
The script will give me the possibility to choose only one of these three versions, so the m3u that will be created has exactly the 100 songs.
But if I use the importM3U script to have the created playlist available in mediamonkey again it will import all the three versions of the example above.
So i'd like to ask you if it's possible that the recreateM3U script not only creates a "fixed" playlist, but also adds the playlist to MM.
Since the choise for only 1 of the three versions (example above) is already made in this script I think it should be possible to add it only once to the playlist.
I hope it's clear to you what I'm asking and I hope it's possible to add this to the script.
Kind regards,
Dreesje