From 3812aa6502e790ba8367d43795dca1d3331edde5 Mon Sep 17 00:00:00 2001
From: HelloZeroNet <hello@noloop.me>
Date: Wed, 20 Apr 2016 23:40:26 +0200
Subject: [PATCH] Support verify content.json directly from parsed dict

---
 src/Content/ContentManager.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/Content/ContentManager.py b/src/Content/ContentManager.py
index 6e9c03ff..48aa1349 100644
--- a/src/Content/ContentManager.py
+++ b/src/Content/ContentManager.py
@@ -616,7 +616,10 @@ class ContentManager(object):
         if inner_path.endswith("content.json"):  # content.json: Check using sign
             from Crypt import CryptBitcoin
             try:
-                new_content = json.load(file)
+                if type(file) is dict:
+                    new_content = file
+                else:
+                    new_content = json.load(file)
                 if inner_path in self.contents:
                     old_content = self.contents.get(inner_path)
                     # Checks if its newer the ours