refactored id's to be 64-bit integers

This commit is contained in:
Hellow
2023-04-12 12:15:12 +02:00
parent 1835e60cd1
commit 0bd4e96b27
3 changed files with 21 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
from typing import List, Set
from typing import List, Set, Tuple
import logging
import tempfile
import os
@@ -36,6 +36,9 @@ def get_random_message() -> str:
return random.choice(HAPPY_MESSAGES)
ID_BITS: int = 64
ID_RANGE: Tuple[int] = 0, 2**ID_BITS
TEMP_DIR = Path(tempfile.gettempdir(), "music-downloader")
TEMP_DIR.mkdir(exist_ok=True)
LOG_PATH = Path(TEMP_DIR, "download_logs.log")