diff --git a/rtv/objects.py b/rtv/objects.py index 68c9160..0fc362b 100644 --- a/rtv/objects.py +++ b/rtv/objects.py @@ -37,6 +37,11 @@ def patch_webbrowser(): # standard library webbrowser.register('surf', None, webbrowser.BackgroundBrowser('surf')) + # Fix the opera browser, see https://github.com/michael-lazar/rtv/issues/476. + # By default, opera will open a new tab in the current window, which is + # what we want to do anyway. + webbrowser.register('opera', None, webbrowser.BackgroundBrowser('opera')) + if sys.platform != 'darwin' or 'BROWSER' not in os.environ: return