# coding: utf-8 import os import tempfile try: from urlparse import urlparse except ImportError: from urllib.parse import urlparse BASE_URL = os.getenv('NHENTAI', 'https://ehentai.to') __api_suspended_DETAIL_URL = '%s/api/gallery' % BASE_URL DETAIL_URL = '%s/g' % BASE_URL SEARCH_URL = '%s/api/galleries/search' % BASE_URL TAG_API_URL = '%s/api/galleries/tagged' % BASE_URL LOGIN_URL = '%s/login/' % BASE_URL CHALLENGE_URL = '%s/challenge' % BASE_URL FAV_URL = '%s/favorites/' % BASE_URL IMAGE_URL = 'https://t.dogehls.xyz/galleries' NHENTAI_HOME = os.path.join(os.getenv('HOME', tempfile.gettempdir()), '.nhentai') NHENTAI_HISTORY = os.path.join(NHENTAI_HOME, 'history.sqlite3') NHENTAI_CONFIG_FILE = os.path.join(NHENTAI_HOME, 'config.json') CONFIG = { 'proxy': {'http': '', 'https': ''}, 'cookie': '', 'language': '', 'template': '', 'useragent': 'nhentai command line client (https://github.com/RicterZ/nhentai)' } LANGUAGEISO ={ 'english' : 'en', 'chinese' : 'zh', 'japanese' : 'ja', 'translated' : 'translated' }