From 2e2805b513deb9d07d4866f6c2a0c5905187161d Mon Sep 17 00:00:00 2001 From: Prinz23 Date: Sat, 15 Nov 2014 19:25:40 +0100 Subject: [PATCH] Fix adding shows with titles that contain "&" on Add Trending Show page. --- CHANGES.md | 1 + gui/slick/interfaces/default/home_trendingShows.tmpl | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 65c85104..73a8384a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -9,6 +9,7 @@ * Change Help and Info icon sprites to color and text of Arguments if unused * Change sharper looking heart image on the Add Show page * Change Add Show on Add Trending Show Page to use the full Add New Show flow +* Fix adding shows with titles that contain "&" on Add Trending Show page ### 0.3.0 (2014-11-12 14:30:00 UTC) diff --git a/gui/slick/interfaces/default/home_trendingShows.tmpl b/gui/slick/interfaces/default/home_trendingShows.tmpl index 5c4c6ef8..41997405 100644 --- a/gui/slick/interfaces/default/home_trendingShows.tmpl +++ b/gui/slick/interfaces/default/home_trendingShows.tmpl @@ -1,6 +1,7 @@ #import sickbeard #import datetime #import re +#import urllib #from sickbeard.common import * #from sickbeard import sbdatetime #from sickbeard.helpers import anon_url @@ -148,7 +149,8 @@ #if 'ExistsInLibrary' in $cur_show['tvdb_id']:

In library

#else - Add Show + #set $encoded_show_title = urllib.quote($cur_show['title'].encode("utf-8")) + Add Show #end if