diff --git a/platypush/backend/http/static/js/media.js b/platypush/backend/http/static/js/media.js index 4ff4a588..e5588ebb 100644 --- a/platypush/backend/http/static/js/media.js +++ b/platypush/backend/http/static/js/media.js @@ -187,7 +187,7 @@ $(document).ready(function() { const getSubtitles = function(resource) { return new Promise((resolve, reject) => { - if (!window.config.media.subtitles) { + if (!window.config.media.subtitles || resource.startsWith('magnet:?')) { resolve(); // media.subtitles plugin not configured } @@ -440,7 +440,7 @@ $(document).ready(function() { $mediaSubtitlesResultsContainer.show(); resolve(subs); }).catch((error) => { - $mediaSubtitlesMessage.text('Unable to load subtitles: ' + error.message); + $mediaSubtitlesMessage.text('Unable to load subtitles: ' + error); reject(error); }); });