Change quotas to prevent issue with title contain "'"

This commit is contained in:
Halali 2019-02-02 08:54:29 +01:00
parent df9e2634e2
commit b178d8fd0f
2 changed files with 6 additions and 6 deletions

View File

@ -399,7 +399,7 @@
hi: $(this).attr("data-hi"), hi: $(this).attr("data-hi"),
sonarrSeriesId: $(this).attr('data-sonarrSeriesId'), sonarrSeriesId: $(this).attr('data-sonarrSeriesId'),
sonarrEpisodeId: $(this).attr('data-sonarrEpisodeId'), sonarrEpisodeId: $(this).attr('data-sonarrEpisodeId'),
title: '{{!details[0].replace("'", "\\'")}}' title: "{{!details[0].replace("'", "\\'")}}"
}; };
$('#loader_text').text("Downloading subtitle to disk..."); $('#loader_text').text("Downloading subtitle to disk...");
@ -472,7 +472,7 @@
hi: hi, hi: hi,
sonarrSeriesId: sonarrSeriesId, sonarrSeriesId: sonarrSeriesId,
sonarrEpisodeId: sonarrEpisodeId, sonarrEpisodeId: sonarrEpisodeId,
title: '{{!details[0].replace("'", "\'")}}' title: "{{!details[0].replace("'", "\'")}}"
}; };
$('#search_result').DataTable( { $('#search_result').DataTable( {
@ -556,7 +556,7 @@
hi: hi, hi: hi,
sonarrSeriesId: sonarrSeriesId, sonarrSeriesId: sonarrSeriesId,
sonarrEpisodeId: sonarrEpisodeId, sonarrEpisodeId: sonarrEpisodeId,
title: '{{!details[0].replace("'", "\\'")}}' title: "{{!details[0].replace("'", "\\'")}}"
}; };
$('#loader_text').text("Downloading subtitle to disk..."); $('#loader_text').text("Downloading subtitle to disk...");

View File

@ -349,7 +349,7 @@
hi: $(this).attr("data-hi"), hi: $(this).attr("data-hi"),
radarrId: $(this).attr("data-radarrId"), radarrId: $(this).attr("data-radarrId"),
tmdbid: {{tmdbid}}, tmdbid: {{tmdbid}},
title: '{{!details[0].replace("'", "\\'")}}' title: "{{!details[0].replace("'", "\\'")}}"
}; };
$('#loader_text').text("Downloading subtitle to disk..."); $('#loader_text').text("Downloading subtitle to disk...");
@ -417,7 +417,7 @@
language: language, language: language,
hi: hi, hi: hi,
radarrId: radarrId, radarrId: radarrId,
title: '{{!details[0].replace("'", "\'")}}' title: "{{!details[0].replace("'", "\'")}}"
}; };
$('#search_result').DataTable( { $('#search_result').DataTable( {
@ -501,7 +501,7 @@
language: $(button).attr("data-language"), language: $(button).attr("data-language"),
hi: hi, hi: hi,
radarrId: radarrId, radarrId: radarrId,
title: '{{!details[0].replace("'", "\\'")}}' title: "{{!details[0].replace("'", "\\'")}}"
}; };
$('#loader_text').text("Downloading subtitle to disk..."); $('#loader_text').text("Downloading subtitle to disk...");