]> git.lizzy.rs Git - nhentai.git/commitdiff
fix
authorRicterZ <ricterzheng@gmail.com>
Sat, 14 Mar 2020 16:24:12 +0000 (00:24 +0800)
committerRicterZ <ricterzheng@gmail.com>
Sat, 14 Mar 2020 16:24:12 +0000 (00:24 +0800)
MANIFEST.in
nhentai/serializer.py

index cf58764b17a7c7730f1d0aecdf659cb9d382a471..fdc3abce3fd5fd77dce4ed6a5732810685799813 100644 (file)
@@ -5,3 +5,4 @@ include nhentai/viewer/styles.css
 include nhentai/viewer/scripts.js
 include nhentai/viewer/main.html
 include nhentai/viewer/main.css
+include nhentai/viewer/main.js
index d8f795a09217fea969aff9753f32bd1a77171e28..8e7db1d6e611cdeed2c0cb0d6cd82089c9df88cb 100644 (file)
@@ -24,7 +24,7 @@ def serialize(doujinshi, dir):
     metadata['URL'] = doujinshi.url
     metadata['Pages'] = doujinshi.pages
 
-    with open(os.path.join(dir, 'metadata.json'), 'w', encoding="raw_unicode_escape") as f:
+    with open(os.path.join(dir, 'metadata.json'), 'w') as f:
         json.dump(metadata, f, separators=','':')