]> git.lizzy.rs Git - nhentai.git/blobdiff - nhentai/constant.py
Merge pull request #189 from mobrine1/mobrine1-patch-1
[nhentai.git] / nhentai / constant.py
index c6b40c454390a5a4e067211abdb3a94a98414491..bce3604f02f6639e887bd66df2625c0ff9e95236 100644 (file)
@@ -1,6 +1,7 @@
 # coding: utf-8
 from __future__ import unicode_literals, print_function
 import os
+import copy
 import tempfile
 
 try:
@@ -26,12 +27,13 @@ u = urlparse(BASE_URL)
 IMAGE_URL = '%s://i.%s/galleries' % (u.scheme, u.hostname)
 
 NHENTAI_HOME = os.path.join(os.getenv('HOME', tempfile.gettempdir()), '.nhentai')
-NHENTAI_PROXY = os.path.join(NHENTAI_HOME, 'proxy')
-NHENTAI_COOKIE = os.path.join(NHENTAI_HOME, 'cookie')
-NHENTAI_LANGUAGE = os.path.join(NHENTAI_HOME, 'language')
 NHENTAI_HISTORY = os.path.join(NHENTAI_HOME, 'history.sqlite3')
+NHENTAI_CONFIG_FILE = os.path.join(NHENTAI_HOME, 'config.json')
 
-PROXY = {}
 
-COOKIE = ''
-LANGUAGE = ''
+CONFIG = {
+    'proxy': {'http': '', 'https': ''},
+    'cookie': '',
+    'language': '',
+    'template': '',
+}