Files
YYeTsBot/yyetsbot/config.py

56 lines
1.7 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
2023-05-17 20:05:48 +02:00
__author__ = "Benny <benny.think@gmail.com>"
2021-01-18 22:26:02 +08:00
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
2023-07-28 19:21:28 +02:00
DOMAIN = "https://yyets.click/"
2023-02-05 20:51:08 +01:00
WORKERS = f"{DOMAIN}resource?id=" + "{}"
2023-07-28 19:21:28 +02:00
# https://yyets.click/discuss#6464d5b1b27861fa44647e7e
2023-05-17 20:05:48 +02:00
DISCUSS = f"{DOMAIN}discuss#" + "{}"
# 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
2023-03-07 19:27:20 +01:00
TOKEN = os.getenv("TOKEN")
2021-01-22 20:44:59 +08:00
# network and server config
PROXY = os.getenv("PROXY")
2023-03-07 19:27:20 +01:00
REDIS = os.getenv("REDIS", "redis")
MONGO = os.getenv("MONGO", "mongo")
2021-01-22 20:44:59 +08:00
# other
2023-03-07 19:27:20 +01:00
MAINTAINER = os.getenv("OWNER")
REPORT = os.getenv("REPORT", False)
# This name must match class name, other wise this bot won't running.
2023-05-17 20:05:48 +02:00
FANSUB_ORDER: str = os.getenv("ORDER") or "YYeTsOffline,ZimuxiaOnline,NewzmzOnline,ZhuixinfanOnline,XL720,BD2020"