-
Notifications
You must be signed in to change notification settings - Fork 4
/
constants.py
41 lines (30 loc) · 1.16 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
DOWNLOADER_VERSION = "2.3"
"""Program version"""
REQUEST_HEADERS = {
"User-Agent": f"NiiMiyo-EDOPro-HD-Downloader/{DOWNLOADER_VERSION}"
}
"""Header to be used in an HTTP request"""
INTRO_STRING = f"""EDOPro HD Downloader v{DOWNLOADER_VERSION}
Created by Nii Miyo
Type "/help" for help"""
"""String to be used when starting the program"""
INPUT_STRING = "Insert deck name (without .ydk) or command: "
"""String that appears at user input"""
YGOPRODECK_CARDS_URL = "https://db.ygoprodeck.com/api/v7/cardinfo.php"
"""Base API URL for YGOProDeck"""
IMAGES_BASE_URL = "https://images.ygoprodeck.com/images/cards"
"""Base URL for images"""
CARD_CACHE_PATH = "./hd_cards_downloader_tracker"
"""Path to the cards cache file"""
FIELD_CACHE_PATH = "./hd_fields_downloader_tracker"
"""Path to the fields cache file"""
SETUP_CREATION_FILES = (CARD_CACHE_PATH, FIELD_CACHE_PATH)
"""Files needed on setup"""
SETUP_CREATION_FOLDERS = ("pics/field",)
"""Folders needed on setup"""
SLEEP_TIME_BETWEEN_DOWNLOADS = 1 / 18
"""Time in seconds that the program will wait before downloading the next card"""
ID_CONVERSION: dict[int, int] = {
# Mecha Phantom Beast Token
904186: 31533705
}