Try to open the url automatically
from urllib.parse import urlencode
+from plextraktsync.util.openurl import openurl
+
URL_TEMPLATE = 'https://github.com/Taxel/PlexTraktSync/issues/new?template=bug.yml&{}'
@@ -18,6 +20,8 @@ def bug_url():
def bug_report():
url = bug_url()
- print('Click this link to create a GitHub issue populated with your configuration:')
+
+ print("Opening bug report URL in browser, if that doesn't work open the link manually:")
print('')
- print(f"{url}")
+ print(url)
+ openurl(url)
