Change quotas to prevent issue with title contain "'"

pull/302/head
Halali 6 years ago
parent df9e2634e2
commit b178d8fd0f

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

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

Loading…
Cancel
Save