From 9134a231b3e0e807b1f3539d711f8def4147c5ea Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 7 Jan 2020 09:46:26 +0100 Subject: [PATCH] success=true will always be in the response: deal with it --- .../backend/http/static/js/plugins/media/handlers/torrent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/backend/http/static/js/plugins/media/handlers/torrent.js b/platypush/backend/http/static/js/plugins/media/handlers/torrent.js index 7f586e09ad..35a6d2ea23 100644 --- a/platypush/backend/http/static/js/plugins/media/handlers/torrent.js +++ b/platypush/backend/http/static/js/plugins/media/handlers/torrent.js @@ -90,7 +90,7 @@ MediaHandlers.torrent = MediaHandlers.base.extend({ download: async function(item) { let status = await this.status(item.url); - if (status && Object.keys(status).length) { + if (status && Object.keys(status).length > 1) { createNotification({ text: 'This torrent is already being downloaded, please play the downloading local media file instead', image: {