Description: This Plugin shuffles Songs based on the history of playing. If a song got played recently, it is less likely to get played. This reduces the chance that the same song gets played again. Even when the media player gets restarted!
How it works
The plugin creates a file in the vlc config directory, which stores the paths to the songs, the liking and the time of the last change.
At the beginning, all songs get a rating of 100 and the current timestamp. When a song gets played, the rating is reduced between 7 and 13 points. When a song gets skipped, the rating is reduced by the percentage of the remaining time (up to 10% to the end) ±3 random points
When the plugin randomizes the playlist, songs with a higher rating, have a higher chance to get into the top spots of the playlist. Songs with less rating are more down in the playlist. Additionally, songs with the same rating get shuffled. So it's always random.
The rating increases when the plugin gets loaded. The rating increases by 1 point every day the song wasn't played.
I love the concept of this add on! I copied it to my extensions directory and did a "Reload Extensions". How do I use it and/or how do I know it is working? What is the name of the file that is place in the config directory?
Does it work when I close the player and open it again? Today I restart my player loaded again the same folders with songs and after a while the same songs from earlier the day started to play instead of not played at all.
Hello,
first of all thanks for using the plugin!
I am assuming you are using Windows. There was a bug that prevented the history file to be loaded. This should now be fixed. If you encounter any problems, please report it on GitHub as the interface is better there.
Thanks for the fast answer! I assume you mean to download this file - https://github.com/Dreistein/vlc_history_shuffle/commit/4719ed35d6bc3868ca9fd79d5a434d5755ab8855
I will give it a try :)
Ratings & Comments
9 Comments
10 Really needed extension if you use VLC as your main music player. Thanks for sharing it and the nice code documentation!
9 9 excellent, works like a charm. True shuffle for my 1000+ song playlists.
How does one install this?
Nevermind, go to "Program Files(x86) / VideoLAN / VLC / lua / extensions /" *paste script file*
Thanks! I wondered the same :)
I love the concept of this add on! I copied it to my extensions directory and did a "Reload Extensions". How do I use it and/or how do I know it is working? What is the name of the file that is place in the config directory?
Does it work when I close the player and open it again? Today I restart my player loaded again the same folders with songs and after a while the same songs from earlier the day started to play instead of not played at all.
Hello, first of all thanks for using the plugin! I am assuming you are using Windows. There was a bug that prevented the history file to be loaded. This should now be fixed. If you encounter any problems, please report it on GitHub as the interface is better there.
Thanks for the fast answer! I assume you mean to download this file - https://github.com/Dreistein/vlc_history_shuffle/commit/4719ed35d6bc3868ca9fd79d5a434d5755ab8855 I will give it a try :)