feat: cleanup
This commit is contained in:
parent
6064e3b8b3
commit
fe81fee82b
@ -15,7 +15,7 @@ from youtube_dl.extractor.youtube import YoutubeIE
|
|||||||
from ...utils.exception.config import SettingValueError
|
from ...utils.exception.config import SettingValueError
|
||||||
from ...utils.config import main_settings, youtube_settings, logging_settings
|
from ...utils.config import main_settings, youtube_settings, logging_settings
|
||||||
from ...utils.shared import DEBUG, DEBUG_YOUTUBE_INITIALIZING
|
from ...utils.shared import DEBUG, DEBUG_YOUTUBE_INITIALIZING
|
||||||
from ...utils.functions import get_current_millis
|
from ...utils import get_current_millis
|
||||||
|
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
from ...utils.debug_utils import dump_to_file
|
from ...utils.debug_utils import dump_to_file
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
from datetime import datetime
|
||||||
|
|
||||||
from .config import config, read_config, write_config
|
from .config import config, read_config, write_config
|
||||||
from .enums.colors import BColors
|
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):
|
def user_input(msg: str, color: BColors = BColors.ENDC):
|
||||||
return input(_apply_color(msg, color)).strip()
|
return input(_apply_color(msg, color)).strip()
|
||||||
|
|
||||||
|
|
||||||
|
def get_current_millis() -> int:
|
||||||
|
dt = datetime.now()
|
||||||
|
return int(dt.microsecond / 1_000)
|
||||||
|
@ -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)
|
|
Loading…
Reference in New Issue
Block a user