From 6215c0ed60a61fc890d51b43a4b6d46b84202af3 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Sat, 31 Mar 2018 10:23:04 +0300 Subject: [PATCH] fix(replication): show correct torrent types on replication --- src/background/spider.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/background/spider.js b/src/background/spider.js index 0fabbf4..e11aa29 100644 --- a/src/background/spider.js +++ b/src/background/spider.js @@ -447,6 +447,18 @@ const insertTorrentToDB = (torrent) => { if(!torrent) return + // fix cases for low cases letters + if(torrent.contentcategory) + { + torrent.contentCategory = torrent.contentcategory; + delete torrent.contentcategory; + } + if(torrent.contenttype) + { + torrent.contentType = torrent.contenttype; + delete torrent.contenttype; + } + const { filesList } = torrent delete torrent.filesList;