Posts: 223
Joined: Oct 2003
Reputation:
0
i'd love a jukebox menu option
i'd love to be able to give it criteria to use in its random selection, like genre, share folder, playlist(s) etc. to customize the type of music it will play.
this would be awesome!
Kodi v17.6 on Asustor NAS
Kodi v17.6 on Fire Stick v2
Posts: 3
Joined: Feb 2004
Reputation:
0
i was just gonna ask for a 'random' feature!
glad i did a search first. not only would i like this feature to be implemented for music but also for video. i have many music videos, with the list growing rapidly as i rip music videos from my dvds, and would like for these to play randomly too.
as the original poster said to have it working but also, if possible, to have it randomly play files in folders in a heirarchy - if that's at all possible, or even makes sense?
also, have to say, the software is getting better with every release. keep up the good work guys - it's very appreciated!
vit
Posts: 122
Joined: Mar 2004
Reputation:
0
Stace
Senior Member
Posts: 122
your right, videos would be good too!!!
kinghowdy0
Unregistered
kinghowdy0
Unregistered
Posts: N/A
if i have a lot of ppl over or whatever, i load the top 100 list and put that on shuffle that way it only plays decent songs b/c the media library could be filled with a bunch of crappy wav files and stuff, that's just my substitute for lack of that feature. random videos would be cool for music videos
Posts: 7
Joined: May 2005
Reputation:
0
i have worked with a few multi room systems, some of which have a party mode, which basically plays random music at the click of a button, i thought it would be cool to have a party mode or random button available on the toolbar on the left of the screen once inside the relevent bookmark, which would randomly play music from all of my albums?
Posts: 901
Joined: Feb 2005
Reputation:
3
i definitly second that and if possible, make use of a bpm change limiter/slider, just like in winamp.
Posts: 18
Joined: Jul 2004
Reputation:
0
wtz
Junior Member
Posts: 18
if you just want to be able to play random music from your whole library you could just add your music share to a playlist and play it with random.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
actually you dont have to maintain anything...
1) scan your music
2) go to library, then songs
3) use "queue" on "all songs" item at the top
4) switch to now playing window, enable randomize
Posts: 46
Joined: Jan 2005
Reputation:
0
MnC_
Junior Member
Posts: 46
hi,
maybe these python scripts will help .. turn on xbox and play all music on xbox at random:
-create file autoexec.py and dump it in your script dir
-create <dir> autoexec
-create file startup_playlist.py and dump it in autoexec <dir>
begin autoexec.py
-----------
# auto execute scripts when xbmc starts, place this file in xbmchome\scripts\
#
# note: - do not execute more than one script at a time which asks for user input!
# import xbmc
xbmc.executescript('q:\\scripts\\autoexec\\startup_playlist.py')
-----------
end autoexec.py
begin startup_playlist.py
-----------
''' vim: ts=8 sw=4 noexpandtab
author: rune hammersland
version: 0.3
xbox media center comes with a script to play an mp3 file at startup
(startupmp3). this script will load a playlist if it exists, and if not,
traverse a directory and load all relevant music files. it is intended as a
replacement for startupmp3, and enables you to listen to a playlist, or all
music files in a given directory.
changelog:
2005-05-27 13:10:33 - rune hammersland:
* added possibility for multiple playlists.
* added possibility for multiple music dirs.
'''
import xbmc
import os
# ---------------------------------------- #
# "configuration"
# ---------------------------------------- #
# change this to your playlist(s).
# written like this: ['path\\to\\plist1', 'to\\plist2', 'plist\\3']
playlist_files= ['']
#['e:\\tdata\\0face008\\albums\\playlists\\all.m3u']
# dirs(s) to traverse if playlist does not exist. nb: no trailing slash.
# written like this: ['path\\to\\dir1', 'to\\dir2', 'dir\\3']
music_dirs = ['f:\\music']
# shuffle playlist if this var equals 1.
shuffle_files = 1
# ---------------------------------------- #
# code
# ---------------------------------------- #
# function for adding files to playlist
def add_files(pl, dirname, names):
for filename in names:
if (os.path.isfile(dirname + "\\" + filename)):
add = 0
# check extension of file.
if (filename[-4:] == ".mp3"): add = 1
if (filename[-4:] == ".ogg"): add = 1
if (filename[-4:] == ".wav"): add = 1
if (filename[-5:] == ".flac"): add = 1
# if file is to be added, do it.
if (add == 1): pl.add(dirname + "\\" + filename)
elif (os.path.isdir(dirname + "\\" + filename)):
os.path.walk(dirname + "\\" + filename, add_files, pl)
# get music playlist from xbmc
plist = xbmc.playlist(0)
plist.clear()
# load playlist if it exists
for playlist_file in playlist_files:
if (os.path.isfile(playlist_file)):
plist.load(playlist_file)
# else, find all available music
else:
for music_dir in music_dirs:
os.path.walk(music_dir, add_files, plist)
# do the shuffle!
if (shuffle_files == 1): plist.shuffle()
xbmc.player().play(plist)
------------------
end startup_playlist.py
worx like a charm for me .. hope it helps ya out .. and erm .. what button ..hehe ..
sincerely mnc!
Posts: 77
Joined: Jan 2006
Reputation:
0
actually you dont have to maintain anything...
1) scan your music
2) go to library, then songs
3) use "queue" on "all songs" item at the top
4) switch to now playing window, enable randomize
so....can this approach be used to randomly play songs in a specific genre....or artist?? say you want to randomly play songs from the "chanson" genre.
john
Posts: 1,473
Joined: Aug 2004
Reputation:
3
C-Quel
Retired Team-Kodi Member
Posts: 1,473
goto library then artist and queue or library and genre then queue...