feat: cleanup

This commit is contained in:
Hazel 2024-04-09 12:42:06 +02:00
parent 6064e3b8b3
commit fe81fee82b
3 changed files with 8 additions and 12 deletions

View File

@ -15,7 +15,7 @@ from youtube_dl.extractor.youtube import YoutubeIE
from ...utils.exception.config import SettingValueError
from ...utils.config import main_settings, youtube_settings, logging_settings
from ...utils.shared import DEBUG, DEBUG_YOUTUBE_INITIALIZING
from ...utils.functions import get_current_millis
from ...utils import get_current_millis
if DEBUG:
from ...utils.debug_utils import dump_to_file

View File

@ -1,3 +1,5 @@
from datetime import datetime
from .config import config, read_config, write_config
from .enums.colors import BColors
@ -18,3 +20,8 @@ def output(msg: str, color: BColors = BColors.ENDC):
def user_input(msg: str, color: BColors = BColors.ENDC):
return input(_apply_color(msg, color)).strip()
def get_current_millis() -> int:
dt = datetime.now()
return int(dt.microsecond / 1_000)

View File

@ -1,11 +0,0 @@
import os
from datetime import datetime
def clear_console():
os.system('cls' if os.name in ('nt', 'dos') else 'clear')
def get_current_millis() -> int:
dt = datetime.now()
return int(dt.microsecond / 1_000)