fix browser prefs
This commit is contained in:
parent
33365f077d
commit
42f09175ff
1 changed files with 3 additions and 1 deletions
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue