<gh_stars>1-10
from urllib.parse import urljoin


MAL_BASEURL = 'https://myanimelist.net'
MAL_ADD_URL = urljoin(MAL_BASEURL, '/api/animelist/add/{0}.xml')
MAL_UPDATE_URL = urljoin(MAL_BASEURL, '/api/animelist/update/{0}.xml')
MAL_SEARCH_URL = urljoin(MAL_BASEURL, '/search/prefix.json?type=anime&keyword={0}&v=1')

TMDB_BASEURL = 'https://api.themoviedb.org'
TMDB_SEARCH_TV = urljoin(TMDB_BASEURL, '/3/search/tv')
TMDB_SEASON_DETAIL = urljoin(TMDB_BASEURL, '/3/tv/{0}/season/{1}')

TVTIME_CLIENT_ID = 'UOWED7wBGRQv17skSZJO'
TVTIME_CLIENT_SECRET = '<KEY>'
TVTIME_BASEURL = 'https://api.tvshowtime.com'
TVTIME_DEVICE_CODE = urljoin(TVTIME_BASEURL, '/v1/oauth/device/code')
TVTIME_TOKEN = urljoin(TVTIME_BASEURL, '/v1/oauth/access_token')
TVTIME_CHECKIN = urljoin(TVTIME_BASEURL, '/v1/checkin')
TVTIME_FOLLOW = urljoin(TVTIME_BASEURL, '/v1/follow')

TVDB_ERROR_LOGIN = 'Pease check your credentials, we couldn\'t login to your TVDB account.'
TVDB_SUCCESS_LOGIN = 'Successful login to your TVDB account.'

from urllib.parse import urljoin


MAL_BASEURL = 'https://myanimelist.net'
MAL_ADD_URL = urljoin(MAL_BASEURL, '/api/animelist/add/{0}.xml')
MAL_UPDATE_URL = urljoin(MAL_BASEURL, '/api/animelist/update/{0}.xml')
MAL_SEARCH_URL = urljoin(MAL_BASEURL, '/search/prefix.json?type=anime&keyword={0}&v=1')

TMDB_BASEURL = 'https://api.themoviedb.org'
TMDB_SEARCH_TV = urljoin(TMDB_BASEURL, '/3/search/tv')
TMDB_SEASON_DETAIL = urljoin(TMDB_BASEURL, '/3/tv/{0}/season/{1}')

TVTIME_CLIENT_ID = 'UOWED7wBGRQv17skSZJO'
TVTIME_CLIENT_SECRET = '<KEY>'
TVTIME_BASEURL = 'https://api.tvshowtime.com'
TVTIME_DEVICE_CODE = urljoin(TVTIME_BASEURL, '/v1/oauth/device/code')
TVTIME_TOKEN = urljoin(TVTIME_BASEURL, '/v1/oauth/access_token')
TVTIME_CHECKIN = urljoin(TVTIME_BASEURL, '/v1/checkin')
TVTIME_FOLLOW = urljoin(TVTIME_BASEURL, '/v1/follow')

TVDB_ERROR_LOGIN = 'Pease check your credentials, we couldn\'t login to your TVDB account.'
TVDB_SUCCESS_LOGIN = 'Successful login to your TVDB account.'