From 0d2e0daed3c77b95fc3a80adb24a74d3a3e4a0cd Mon Sep 17 00:00:00 2001 From: Halali Date: Sat, 19 Jan 2019 14:57:16 +0100 Subject: [PATCH] Fix title is None in Wanted pages --- views/movie.tpl | 2 +- views/wantedmovies.tpl | 3 ++- views/wantedseries.tpl | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/views/movie.tpl b/views/movie.tpl index 95c8fe2b6..713af411c 100644 --- a/views/movie.tpl +++ b/views/movie.tpl @@ -491,7 +491,7 @@ ; }); - function manual_get(button, episodePath, sceneName, hi, sonarrSeriesId, sonarrEpisodeId){ + function manual_get(button, episodePath, sceneName, hi){ const values = { subtitle: $(button).attr("data-subtitle"), provider: $(button).attr("data-provider"), diff --git a/views/wantedmovies.tpl b/views/wantedmovies.tpl index e35ab1ddd..80b3653ee 100644 --- a/views/wantedmovies.tpl +++ b/views/wantedmovies.tpl @@ -167,7 +167,8 @@ sceneName: $(this).attr("data-sceneName"), language: $(this).attr("data-language"), hi: $(this).attr("data-hi"), - radarrId: $(this).attr("data-radarrId") + radarrId: $(this).attr("data-radarrId"), + title: '{{!row[0].replace("'", "\\'")}}' }; $('#loader_text').text("Downloading subtitles..."); $('#loader').addClass('active'); diff --git a/views/wantedseries.tpl b/views/wantedseries.tpl index d6ec1da5e..8897d0497 100644 --- a/views/wantedseries.tpl +++ b/views/wantedseries.tpl @@ -175,7 +175,8 @@ language: $(this).attr("data-language"), hi: $(this).attr("data-hi"), sonarrSeriesId: $(this).attr("data-sonarrSeriesId"), - sonarrEpisodeId: $(this).attr("data-sonarrEpisodeId") + sonarrEpisodeId: $(this).attr("data-sonarrEpisodeId"), + title: '{{!row[0].replace("'", "\\'")}}' }; $('#loader_text').text("Downloading subtitles..."); $('#loader').addClass('active');