success=true will always be in the response: deal with it

This commit is contained in:
Fabio Manganiello 2020-01-07 09:46:26 +01:00
parent 3271759fba
commit 9134a231b3

View file

@ -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: {