Package: ampache Version: 3.6-git408e713+dfsg-2 Severity: wishlist Hi,
the M3U import does not conserve track order, and use tracks number to sort files. I think it should use the "ordered" option of add_songs, and I attached a patch to fix it. Regards, Florent.
--- ./old/catalog.class.php 2012-08-15 14:47:57.105385685 +0200 +++ ./lib/catalog.class.php 2012-08-15 14:36:17.000000000 +0200 @@ -2320,7 +2320,7 @@ /* Recreate the Playlist */ $playlist = new Playlist($playlist_id); - $playlist->add_songs($songs); + $playlist->add_songs($songs,$ordered=true); $reason = sprintf(T_ngettext('Playlist Import and Recreate Successful. Total: %d Song', 'Playlist Import and Recreate Successful. Total: %d Songs', count($songs)), count($songs));