fix browser prefs

This commit is contained in:
boyska 2017-05-31 17:53:10 +02:00
parent 33365f077d
commit 42f09175ff

View file

@ -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)]