Files
YYeTsBot/yyetsbot/config.py

57 lines
1.8 KiB
Python
Raw Normal View History

2021-01-18 22:26:02 +08:00
# coding: utf-8
# YYeTsBot - config.py
# 2019/8/15 18:42
__author__ = 'Benny <benny.think@gmail.com>'
import os
2021-01-22 20:44:59 +08:00
# website config
# yyets
2021-01-18 22:26:02 +08:00
BASE_URL = "http://www.rrys2020.com"
LOGIN_URL = "http://www.rrys2020.com/user/login"
GET_USER = "http://www.rrys2020.com/user/login/getCurUserTopInfo"
2021-01-20 21:51:03 +08:00
YYETS_SEARCH_URL = "http://www.rrys2020.com/search?keyword={kw}&type=resource"
2021-01-18 22:26:02 +08:00
AJAX_LOGIN = "http://www.rrys2020.com/User/Login/ajaxLogin"
SHARE_URL = "http://www.rrys2020.com/resource/ushare"
SHARE_WEB = "http://got002.com/resource.html?code={code}"
# http://got002.com/api/v1/static/resource/detail?code=9YxN91
SHARE_API = "http://got002.com/api/v1/static/resource/detail?code={code}"
# fix zimuxia
2021-08-27 21:39:08 +08:00
FIX_RESOURCE = "http://www.zimuxia.cn/portfolio/{name}"
FIX_SEARCH = "http://www.zimuxia.cn/?s={kw}"
# zhuixinfan
ZHUIXINFAN_SEARCH = "http://www.fanxinzhui.com/list?k={}"
ZHUIXINFAN_RESOURCE = "http://www.fanxinzhui.com{}"
# yyets website
2021-12-16 20:04:37 +08:00
DOMAIN = "https://yyets.dmesg.app/"
2021-12-16 22:34:12 +08:00
WORKERS = f"{DOMAIN}resource.html?id=%s"
2021-01-18 22:26:02 +08:00
# new zmz
NEWZMZ_SEARCH = "https://newzmz.com/subres/index/getres.html?keyword={}"
NEWZMZ_RESOURCE = "https://ysfx.tv/view/{}"
2021-07-31 17:49:17 +08:00
# BD2020
BD2020_SEARCH = "https://v.bd2020.me/search.jspx?q={}"
2021-07-31 17:49:17 +08:00
# XL720
XL720_SEARCH = "https://www.xl720.com/?s={}"
2021-01-22 20:44:59 +08:00
# authentication config
TOKEN = os.getenv("TOKEN") or "TOKEN"
USERNAME = os.getenv("USERNAME") or "USERNAME"
PASSWORD = os.getenv("PASSWORD") or "password"
2021-01-22 20:44:59 +08:00
# network and server config
PROXY = os.getenv("PROXY")
REDIS = os.getenv("REDIS") or "redis"
MONGO = os.getenv("MONGO") or "mongo"
2021-01-22 20:44:59 +08:00
# other
MAINTAINER = os.getenv("MAINTAINER")
REPORT = os.getenv("REPORT") or False
# This name must match class name, other wise this bot won't running.
2022-03-11 21:22:37 +08:00
FANSUB_ORDER: str = os.getenv("ORDER") or 'YYeTsOffline,ZimuxiaOnline,NewzmzOnline,ZhuixinfanOnline,XL720,BD2020'