52 lines
1.1 KiB
Python
52 lines
1.1 KiB
Python
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
|
|
# tmp solve
|
|
PROMA_WIDTH = 600
|
|
PROMA_HEIGHT = 600
|
|
# i have no template
|
|
PROMA_PATH = ""
|
|
# done
|
|
PROMA_FONTSIZE = 40
|
|
PROMA_FONT = "./resource/OpenSans-Regular.ttf"
|
|
|
|
# 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
|