diff --git a/Contents/Code/webapp.py b/Contents/Code/webapp.py index 878eb5a0..2d6a8ba0 100644 --- a/Contents/Code/webapp.py +++ b/Contents/Code/webapp.py @@ -26,6 +26,7 @@ from flask import Flask, Response, render_template, send_from_directory from flask_babel import Babel import polib +from six.moves.urllib.parse import quote_plus from werkzeug.utils import secure_filename # local imports @@ -316,7 +317,11 @@ def cache_data(): Log.Error('Error getting collection data from LizardByte db: {}'.format(e)) database_id = None - item_issue_url = issue_url.format(issue_title, database_id) if database_id else None + if database_id: + # url encode the issue title + issue_title = quote_plus(issue_title) + + item_issue_url = issue_url.format(issue_title, database_id) if database_type and themerr_db_helper.item_exists( database_type=database_type, diff --git a/requirements.txt b/requirements.txt index 6466ea08..944fbe1a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,6 +7,7 @@ plexapi-backport[alert]==4.15.6 # custom python-plexapi supporting python 2.7 polib==1.2.0;python_version<"3" requests==2.27.1;python_version<"3" # 2.27 is last version supporting Python 2.7 schedule==0.6.0;python_version<"3" +six==1.16.0;python_version<"3" typing==3.10.0.0 werkzeug==1.0.1;python_version<"3"