Shuffle Playlist Original

VLC Extensions

Source (link to git-repo or to original if based on someone elses unmodified work): https://www.opendesktop.org/p/1154030/

2
Score 67.1%
Description:

Shuffles all items on the playlist similar to MPC-HCs randomize playlist function.

How To Install:
- download "shuffle.lua" (download button on the right)
- put it in the VLC extensions folder (create it, if it doesn't exist):
        for Windows: %APPDATA%\vlc\lua\extensions
        for Linux: ~/.local/share/vlc/lua/extensions/
        for Mac OS X: /Applications/VLC.app/Contents/MacOS/share/lua/extensions/
- restart VLC

To use, simply click on ViewShuffle Playlist (or VLCExtensionsShuffle Playlist in some versions of VLC)
If you're not quite happy with the result, simply shuffle again!
Last changelog:

2018-04-17 1 year ago

- Improved shuffle algorithm

apocalypse612

9 months ago

This extension does not work if you add folders to play within the VLC playlist. For example, I have multiple folders within folders to categorize my music. If I add my "Dragonforce" folder that contains multiple albums to the VLC playlist, then use this extension, the results returned are no media files and just 1 folder that doesn't expand that says "Dragonforce".

Please assist. Anyone having this issue?

Report

opacus

11 months ago

I followed the instructions and the option does not show in the "View" options. I created the file in "C:\Users\------\AppData\vlc\lua\extensions". Was that correct?

Report

bolosun

11 months ago

directory is C:\Users\------\AppData\Roaming\vlc\lua\extensions

Report

opacus

11 months ago

It works. Thanks.

Report

opacus

11 months ago

Thanks. I'll try that.

Report

C

Xrott

11 months ago

It seems like the option has been moved in some versions of VLC.
Maybe try "VLC → Extensions → Shuffle Playlist".

Report

opacus

11 months ago

It works when installed in the folder mentioned by "bolosun"

Report

opacus

11 months ago

If so, it mostly sucks for the one you made the effort of programing this option.

Report

opacus

11 months ago

If its you, than I'm really sorry to hear.

Report

mmukov

1 year ago

In line "swap = math.random(#randomList)", it should be "random(i, #randomList)" if you want it to be a truly uniform distribution. Otherwise the last elements have much more chance to be moved to front.

Report

C

Xrott

1 year ago

I didn't know that. Thanks for the tip!

Report

GEZUS95

1 year ago

on vlc 2.1.6 it stops an http stream (.mp3) when i click on "view -> shuffle playlist"

Report

blueseasman

2 years ago

This is what everyone has been asking for, for years. It does a real shuffle. A fantastic improvement to VLC and makes it useful as a music player. Before this extension VLC was marginal at best for music. The problem is that when you search Google or VLC extensions for "shuffle" or "shuffle playlist" this little gem doesn't appear.

Report

pifou42

3 years ago

Thanks for your extension !
I hoped your it would save me (and I'm sure it will !)... but atm, I don't see your button in the interface.
Btw, I restarted VLC. I also checked that the extension is shown as "active" in the menu.

Using version 2.1 (Terry Prachett, 2015-04)


Also, could you bind some keyboard shortcut to the function ? e.g ctrl-shift-R, which IIRC, is the winamp shortcut for this function. MPC or any other would probably be a good choice too, anything to avoid having to click.

Report

pifou42

3 years ago

Finally found it !
it's well hidden, in view -> shuffle playlist

Update or syntax for bindong a shortcut for a plug-in action would still be welcome.
I tried to edit the LUA file, but it would be easier if I knew LUA :). Atm, I only managed to break it.

Report

puchikunch

3 years ago

I need a plugin that allows to play along with the movie musical playlist. Theoretically it is possible to make?

Report

C

Xrott

3 years ago

Sorry, but I'm only making extensions that I want to use. The main reason being, it's a major pain in the ass to write them.

VLC extensions are completely underdeveloped, definitely underdocumented and in some ways even outright broken.

Report

2018-04-17 1 year ago

- Improved shuffle algorithm

2015-12-09 1 year ago

- Added a new icon.
- Fixed files with unknown duration set to -00:01

- changed shortdesc to "Shuffle Playlist" and moved the other text to description.

12345678910
3
product-maker philrj May 11 2018 9 excellent
product-maker blueseasman Mar 14 2017 9 excellent
product-maker pifou42 Jan 21 2016 9 excellent
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
Details
license
MIT License
version
1.1.2
updated Apr 17 2018
added Dec 09 2015
downloads 24h
8
page views 24h 42
System Tags addon mit-license