Page 1 of 1

Clear the playlist when loading a new playlist file

Posted: 24 Jul 2016 19:20
by spinacia
Hi,

Is there a setting or some way to clear the playlist when loading a new playlist file (m3u)?

Say I have two m3u files. I load one file and the playlist is now populated with the items from the first playlist. I now load the second playlist but the items from the second list are added to the existing playlist.

Loading the second m3u should clear the playlist so that only the items from the second m3u are now in the playlist. Otherwise the playlist just keeps on growing every time an m3u is loaded.

Please advise.

Thanks.

Re: Clear the playlist when loading a new playlist file

Posted: 25 Jul 2016 14:07
by Jean-Baptiste Kempf
Sorry, but this is the correct behaviour. USe Ctrl+W to empty the playlist.

Re: Clear the playlist when loading a new playlist file

Posted: 25 Jul 2016 18:43
by spinacia
Thanks Jean-Baptiste.

In MPC-HC and in Windows Media player the playlist is cleared when a new playlist file is loaded.

So this behavior in VLC is not the norm and it should not be forced upon the user. There should a setting in VLC that would toggle between an appending and non-appending playlist mode.

Re: Clear the playlist when loading a new playlist file

Posted: 15 Dec 2016 07:00
by stefanw1337
Thanks Jean-Baptiste.

In MPC-HC and in Windows Media player the playlist is cleared when a new playlist file is loaded.

So this behavior in VLC is not the norm and it should not be forced upon the user. There should a setting in VLC that would toggle between an appending and non-appending playlist mode.
Agreed! I'd like this change or an option to enable it.

Re: Clear the playlist when loading a new playlist file

Posted: 21 Sep 2017 19:34
by Jack77
Hello All,

I agree completely. please implement a solution for this problem.

here's my scenario: I make playlist file for each music album and keep it on my desktop. in windows media player when I click/ play the next playlist (album) I keep listening to this album music only whatever I click WMP next or previous buttons. which is the best and correct behaviour.

in VLC however, when I click/ play the next playlist file and click VLC next or previous buttons the VLC Player now play music from other playlists/ albums. which means the album Identity and its music is literally destroyed! because it's mixed up with other playlists/ albums.

Please give us an option to auto-clear the VLC Playlist whenever we open a playlist file and thank you so much.

Best Regards.

Re: Clear the playlist when loading a new playlist file

Posted: 01 Oct 2017 11:34
by carl10
can we have an option for this please???

Re: Clear the playlist when loading a new playlist file

Posted: 03 Oct 2017 14:29
by Daddy-o
I like the default VLC behavior.
The argument can be made other players are forcing their behavior on users.
The big difference is with VLC we can actually write a comment that the developers will read and the lead developer will respond to.
With that said, a "behavior switch" /setting sounds nice. Maybe I should learn how to program. There are people here doing some real low-level stuff, I wonder if high level UI (user interface) issues might be something I can help with.

Re: Clear the playlist when loading a new playlist file

Posted: 04 Oct 2017 10:20
by carl10
I like the default VLC behavior.
The argument can be made other players are forcing their behavior on users.
The big difference is with VLC we can actually write a comment that the developers will read and the lead developer will respond to.
With that said, a "behavior switch" /setting sounds nice. Maybe I should learn how to program. There are people here doing some real low-level stuff, I wonder if high level UI (user interface) issues might be something I can help with.
we just asking for an option, it's not like we want VLC to behave like what we wants only. in the end we will have 2 options that fits everyone needs. I wish you could help with this. Thank you.

Re: Clear the playlist when loading a new playlist file

Posted: 15 Oct 2017 14:22
by dian
Sorry, but this is the correct behaviour. USe Ctrl+W to empty the playlist.
Hello Sir, please we need an option for this and Thanks in advance.

Re: Clear the playlist when loading a new playlist file

Posted: 11 Nov 2017 13:51
by Sam Brian
I was searching for this option and thank god someone started this feedback! can we have an option for this feature please? I'm abandoning WMP because I'm sure Micro$hit will remove it from future Windows 10 builds like they did to many Win32 programs. I used VLC Player and I loved many things about it especially the many options and features it have. it's boggling my mind why you guys didn't implement this feature till now. we should have "Clear the playlist when loading a new playlist file" option PLEASE! c'mon guys please give us this option. I want to use VLC Player for everything! Thanks for reading my feedback and many thanks for any response.

Re: Clear the playlist when loading a new playlist file

Posted: 11 Nov 2017 13:57
by Sam Brian
Sorry, but this is the correct behaviour. USe Ctrl+W to empty the playlist.
Please Jean give us an option for this and thank you so much for such an amazing Player!

Re: Clear the playlist when loading a new playlist file

Posted: 06 Feb 2018 13:05
by thugo
Yes!!! ... from me too! Please add this feature! Even just a command for doing the same as Ctrl+W does.

Otherwise, at the end of the day I would have a totally full and cluttered playlist.

I found a workaround though. Since the playlist gets deleted on closing, I use the following command. And I added it to the "Play"-entry in the context-menu of my file-browser.

This is the command:

Code: Select all

killall vlc & sleep .01 && vlc %U

It's a bit russian, but it works! ;-)

Re: Clear the playlist when loading a new playlist file

Posted: 06 Feb 2018 13:26
by thugo
Btw, ... there are quite a lot of people asking for this feature outside of this forum too! ;-)

Re: Clear the playlist when loading a new playlist file

Posted: 08 Feb 2018 19:06
by thugo
PS: I cannot find the button to edit my previous post ... so I write it here:

My above workaround is for linux users of course.

Re: Clear the playlist when loading a new playlist file

Posted: 31 Jan 2019 23:45
by CerebratedFreak
Yes!!! ... from me too! Please add this feature! Even just a command for doing the same as Ctrl+W does.

Otherwise, at the end of the day I would have a totally full and cluttered playlist.

I found a workaround though. Since the playlist gets deleted on closing, I use the following command. And I added it to the "Play"-entry in the context-menu of my file-browser.

This is the command:

Code: Select all

killall vlc & sleep .01 && vlc %U

It's a bit russian, but it works! ;-)
xdotool windowactivate --sync 77594630 key ctrl+w

Re: Clear the playlist when loading a new playlist file

Posted: 01 Feb 2019 00:22
by CerebratedFreak
To expound...

Code: Select all

#!/bin/bash xdotool windowactivate --sync 77594630 key ctrl+w & sleep .01 vlc <PATH TO XSPF file>
I have been a linux user for about a week. I fully expect my little hack to fail soon. Why? Because found the [windowid] of the single VLC instance with the command

Code: Select all

xdotool search --name vlc
It returned the value (77594630) seen in the first code block. The same command now returns 50331654.

BUTT - I am using the [windowid] 77594630 in three different scripts. And they perform as intended. Three shortcuts to different HDHomerun XSPF files. Playlist clears, new playlist injects, play resumes on entry 0.

The first instance of VLC is launched with

Code: Select all

vlc --no-playlist-enqueue
edit: posted in violation of forum rules. Had no idea where I was i the forum when I found this thread. I was googling for the native VLC command when I encountered the collective understanding that the google was fruitless. Until now.

Windows has a similar process available through powershell/autoit/wscript etc.


So and thus. I am the Antman.