AIMP Forum

AIMP for PC => Вопросы / Questions => Topic started by: Skrytociemny on June 05, 2023, 16:54:06

Title: When I open a Playlist from a xspf it always opens the same Track
Post by: Skrytociemny on June 05, 2023, 16:54:06
I have made several Playlists as xspf files but there is one problem. Few of my playlists behave correcly. When I open them the first track to play is random every time I open the playlist. However all but few playlists play the same track first when opened. I have the shuffle option turned on. One of the playlists started playing first track randomly after I left the computer off for the night. Is there something I am missing? How do I make it so that when I play a playlist from an xspf file it starts with a random track?
Title: Re: When I open a Playlist from a xspf it always opens the same Track
Post by: Алексей Долматов on June 05, 2023, 17:03:23
Changes are saved in the player's internal settings structure. Import playlists and use player manager, don't open (import) files every time.
Title: Re: When I open a Playlist from a xspf it always opens the same Track
Post by: Skrytociemny on June 05, 2023, 20:09:13
Well there is a tool to make playlist files to open them and there is a setting to delete closed playlists and I somehow made few playlists play a random track when imported so the program has everything it needs to basically be run from desktop folders without ever being inside of it. I just want to know if there is a way to make the playlist import play a random track when imported becouse I know it is possible just don't know how. I would greately apriciate it if there was an answer to this you could give me.
Title: Re: When I open a Playlist from a xspf it always opens the same Track
Post by: Skrytociemny on June 05, 2023, 20:32:24
Ok I went digging into xspf file itself it appears that for some reason when playlist was made each of the tracks recieved a few more lines of code one of them was this line.

<aimp:queueIndex>5</aimp:queueIndex>

This line sets the que order of each track of the playlist on import when you delete it from the tracks in the file using notepad it will play random on import.

You just have to set aimp to shuffle and remove the line of code from the track with index 1 (or 0 if there is one)

I hope whoever finds himself in the hole I did will see this post.
Title: Re: When I open a Playlist from a xspf it always opens the same Track
Post by: Artem on June 06, 2023, 08:09:38
I just want to know if there is a way to make the playlist import play a random track when imported becouse I know it is possible just don't know how.

No, it impossible. Imported playlists always starts playing from beginning (M3U, PLS, WPL) or resumes playback if it contains information about playback queue (XSPF, AIMP4PL)
Title: Re: When I open a Playlist from a xspf it always opens the same Track
Post by: Artem on June 06, 2023, 08:11:04
it will play random on import

Hm, really? In this case app will start playing the list from beginning
Title: Re: When I open a Playlist from a xspf it always opens the same Track
Post by: Soolo on June 06, 2023, 08:27:04
I have made several Playlists as xspf files but there is one problem. Few of my playlists behave correcly. When I open them the first track to play is random every time I open the playlist. However all but few playlists play the same track first when opened.
Use .m3u8