Clear the playlist when loading a new playlist file

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
spinacia
New Cone
New Cone
Posts: 4
Joined: 09 Oct 2008 10:17

Clear the playlist when loading a new playlist file

Postby spinacia » 24 Jul 2016 19:20

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Clear the playlist when loading a new playlist file

Postby Jean-Baptiste Kempf » 25 Jul 2016 14:07

Sorry, but this is the correct behaviour. USe Ctrl+W to empty the playlist.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

spinacia
New Cone
New Cone
Posts: 4
Joined: 09 Oct 2008 10:17

Re: Clear the playlist when loading a new playlist file

Postby spinacia » 25 Jul 2016 18:43

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.

stefanw1337
New Cone
New Cone
Posts: 1
Joined: 15 Dec 2016 06:59

Re: Clear the playlist when loading a new playlist file

Postby stefanw1337 » 15 Dec 2016 07:00

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.

Jack77
New Cone
New Cone
Posts: 1
Joined: 21 Sep 2017 19:07

Re: Clear the playlist when loading a new playlist file

Postby Jack77 » 21 Sep 2017 19:34

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.

carl10
New Cone
New Cone
Posts: 2
Joined: 01 Oct 2017 11:31

Re: Clear the playlist when loading a new playlist file

Postby carl10 » 01 Oct 2017 11:34

can we have an option for this please???

Daddy-o
Blank Cone
Blank Cone
Posts: 18
Joined: 30 Jul 2017 00:27

Re: Clear the playlist when loading a new playlist file

Postby Daddy-o » 03 Oct 2017 14:29

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.

carl10
New Cone
New Cone
Posts: 2
Joined: 01 Oct 2017 11:31

Re: Clear the playlist when loading a new playlist file

Postby carl10 » 04 Oct 2017 10:20

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.

dian
New Cone
New Cone
Posts: 1
Joined: 15 Oct 2017 14:17

Re: Clear the playlist when loading a new playlist file

Postby dian » 15 Oct 2017 14:22

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.

Sam Brian
New Cone
New Cone
Posts: 2
Joined: 11 Nov 2017 13:37

Re: Clear the playlist when loading a new playlist file

Postby Sam Brian » 11 Nov 2017 13:51

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.

Sam Brian
New Cone
New Cone
Posts: 2
Joined: 11 Nov 2017 13:37

Re: Clear the playlist when loading a new playlist file

Postby Sam Brian » 11 Nov 2017 13:57

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!

thugo
New Cone
New Cone
Posts: 8
Joined: 04 Feb 2018 12:46

Re: Clear the playlist when loading a new playlist file

Postby thugo » 06 Feb 2018 13:05

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! ;-)

thugo
New Cone
New Cone
Posts: 8
Joined: 04 Feb 2018 12:46

Re: Clear the playlist when loading a new playlist file

Postby thugo » 06 Feb 2018 13:26

Btw, ... there are quite a lot of people asking for this feature outside of this forum too! ;-)

thugo
New Cone
New Cone
Posts: 8
Joined: 04 Feb 2018 12:46

Re: Clear the playlist when loading a new playlist file

Postby thugo » 08 Feb 2018 19:06

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.

CerebratedFreak
New Cone
New Cone
Posts: 4
Joined: 31 Jan 2019 23:41

Re: Clear the playlist when loading a new playlist file

Postby CerebratedFreak » 31 Jan 2019 23:45

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

CerebratedFreak
New Cone
New Cone
Posts: 4
Joined: 31 Jan 2019 23:41

Re: Clear the playlist when loading a new playlist file

Postby CerebratedFreak » 01 Feb 2019 00:22

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.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 44 guests