pl_callback = getattr(plugin, 'callback_need_track_fb')()
if pl_callback:
to_add.extend(pl_callback)
- random.shuffle(to_add)
for track in to_add:
self.player.add(track)
self.queue_mode()
candidates = self.to_add
self.to_add = list()
+ if self.plugin_conf.get('queue_mode') != 'album':
+ random.shuffle(candidates)
return candidates
def callback_player_database(self):
'MPD': {
'host': "localhost",
#'password': "",
- 'port': "6600"},
+ 'port': "6600",
+ },
'sima': {
'internal': "Crop, History, MpdOptions, Lastfm, RandomFallBack",
'contrib': "",
'user_db': "false",
'history_duration': "8",
'queue_length': "1",
- 'consume': "0",},
+ },
'daemon':{
'daemon': "false",
- 'pidfile': "",},
+ 'pidfile': "",
+ },
'log': {
'verbosity': "info",
'logfile': "",