Option to disable auto now playing announcement
This commit is contained in:
		@@ -18,6 +18,8 @@ tmp_folder_max_size = 10
 | 
				
			|||||||
ignored_folders = tmp
 | 
					ignored_folders = tmp
 | 
				
			||||||
ignored_files = Thumbs.db
 | 
					ignored_files = Thumbs.db
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					announce_current_music = True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[webinterface]
 | 
					[webinterface]
 | 
				
			||||||
enabled = False
 | 
					enabled = False
 | 
				
			||||||
is_web_proxified = True
 | 
					is_web_proxified = True
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -295,7 +295,8 @@ class MumbleBot:
 | 
				
			|||||||
                thumbnail_html = '<img - src="data:image/PNG;base64,' + thumbnail_base64.decode() + '"/>'
 | 
					                thumbnail_html = '<img - src="data:image/PNG;base64,' + thumbnail_base64.decode() + '"/>'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            logging.debug(thumbnail_html)
 | 
					            logging.debug(thumbnail_html)
 | 
				
			||||||
            self.send_msg_channel(var.config.get('strings', 'now_playing') % (title, thumbnail_html))
 | 
					            if var.config.getboolean('bot', 'announce_current_music'):
 | 
				
			||||||
 | 
					                self.send_msg_channel(var.config.get('strings', 'now_playing') % (title, thumbnail_html))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        elif var.current_music["type"] == "file":
 | 
					        elif var.current_music["type"] == "file":
 | 
				
			||||||
            path = var.config.get('bot', 'music_folder') + var.current_music["path"]
 | 
					            path = var.config.get('bot', 'music_folder') + var.current_music["path"]
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user