2024-11-22 02:14:01 +08:00
|
|
|
DEBUG = False
|
|
|
|
|
|
|
|
# fake device
|
|
|
|
DEVICE = {
|
|
|
|
"app_version": "269.0.0.18.75",
|
|
|
|
"android_version": 26,
|
|
|
|
"android_release": "8.0.0",
|
|
|
|
"dpi": "480dpi",
|
|
|
|
"resolution": "1080x1920",
|
|
|
|
"manufacturer": "OnePlus",
|
|
|
|
"device": "Asus",
|
|
|
|
"model": "K00G",
|
|
|
|
"cpu": "qcom",
|
|
|
|
"version_code": "314665256",
|
|
|
|
}
|
|
|
|
|
|
|
|
# type define {mine:ext}
|
|
|
|
FILE_MINE_TYPE = {
|
|
|
|
"image/jpeg": "jpg",
|
|
|
|
"image/pjpeg": "jfif",
|
|
|
|
"image/png": "png",
|
|
|
|
"image/heic": "heic",
|
|
|
|
"image/heif": "heif",
|
|
|
|
"image/webp": "webp",
|
|
|
|
"video/mp4": "mp4",
|
|
|
|
"video/quicktime": "mov",
|
|
|
|
"video/hevc": "hevc",
|
|
|
|
}
|
|
|
|
|
|
|
|
TMP_DIR = "./tmp/"
|
|
|
|
|
|
|
|
# content picture
|
2024-12-18 00:35:17 +08:00
|
|
|
# tmp solve
|
2024-11-22 02:14:01 +08:00
|
|
|
PROMA_WIDTH = 600
|
|
|
|
PROMA_HEIGHT = 600
|
2024-12-18 00:35:17 +08:00
|
|
|
# i have no template
|
|
|
|
PROMA_PATH = ""
|
|
|
|
# done
|
|
|
|
PROMA_FONTSIZE = 40
|
2024-11-22 02:14:01 +08:00
|
|
|
PROMA_FONT = "./resource/OpenSans-Regular.ttf"
|
2024-12-18 00:35:17 +08:00
|
|
|
|
|
|
|
# gRRC IG cache time
|
|
|
|
GRPC_ACCINFO_CACHE = 5*60
|
|
|
|
GRPC_RELOGIN_LIMIT = 10*60
|
|
|
|
|
|
|
|
# gRPC upload/delete interval (for anoth.py)
|
|
|
|
ANOTH_INTERVAL_MIN = 2*60
|
|
|
|
ANOTH_INTERVAL_MAX = 5*60
|
|
|
|
# for testing
|
|
|
|
# ANOTH_INTERVAL_MIN = 10
|
|
|
|
# ANOTH_INTERVAL_MAX = 30
|