]> git.lizzy.rs Git - nhentai.git/blob - nhentai/constant.py
Merge pull request #21 from mentaterasmus/master
[nhentai.git] / nhentai / constant.py
1 # coding: utf-8
2 from __future__ import unicode_literals, print_function
3 import os
4 from nhentai.utils import urlparse
5
6 BASE_URL = os.getenv('NHENTAI', 'https://nhentai.net')
7
8 DETAIL_URL = '%s/api/gallery' % BASE_URL
9 SEARCH_URL = '%s/api/galleries/search' % BASE_URL
10 LOGIN_URL = '%s/login/' % BASE_URL
11 FAV_URL = '%s/favorites/' % BASE_URL
12
13 u = urlparse(BASE_URL)
14 IMAGE_URL = '%s://i.%s/galleries' % (u.scheme, u.hostname)
15
16 PROXY = {}