7 from urlparse import urlparse
9 from urllib.parse import urlparse
12 BASE_URL = os.getenv('NHENTAI', 'https://ehentai.to')
14 __api_suspended_DETAIL_URL = '%s/api/gallery' % BASE_URL
16 DETAIL_URL = '%s/g' % BASE_URL
17 SEARCH_URL = '%s/api/galleries/search' % BASE_URL
20 TAG_API_URL = '%s/api/galleries/tagged' % BASE_URL
21 LOGIN_URL = '%s/login/' % BASE_URL
22 CHALLENGE_URL = '%s/challenge' % BASE_URL
23 FAV_URL = '%s/favorites/' % BASE_URL
25 IMAGE_URL = 'https://t.dogehls.xyz/galleries'
27 NHENTAI_HOME = os.path.join(os.getenv('HOME', tempfile.gettempdir()), '.nhentai')
28 NHENTAI_HISTORY = os.path.join(NHENTAI_HOME, 'history.sqlite3')
29 NHENTAI_CONFIG_FILE = os.path.join(NHENTAI_HOME, 'config.json')
32 'proxy': {'http': '', 'https': ''},
36 'useragent': 'nhentai command line client (https://github.com/RicterZ/nhentai)'
43 'translated' : 'translated'