From 42f09175ff99a11b1301e28a2035e0037d7d9872 Mon Sep 17 00:00:00 2001 From: boyska Date: Wed, 31 May 2017 17:53:10 +0200 Subject: [PATCH] fix browser prefs --- bandcavall/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bandcavall/main.py b/bandcavall/main.py index ad7acd3..696370c 100644 --- a/bandcavall/main.py +++ b/bandcavall/main.py @@ -63,7 +63,9 @@ def main(): prefs = { 'dom.audiochannel.mutedByDefault': True } - with Browser(args.driver, profile_preferences=prefs) as br: + browser_settings = dict(profile_preferences=prefs) \ + if args.driver == 'firefox' else {} + with Browser(args.driver, **browser_settings) as br: # get track info if args.mode == 'track': tracks = [visit_track(br, args.url)]