fix missing import
This commit is contained in:
parent
feea256aa5
commit
8c56e8caef
|
@ -19,7 +19,7 @@ from tqdm.auto import tqdm
|
|||
from process.funcs import get_silent_logger, remove_duplicates_from_playlist, restart_program, setup_file_logger
|
||||
from process.threads import bar_eraser, download_video
|
||||
from ydl.files import create_directories, resolve_path
|
||||
from ydl.yt_dlp import YDL
|
||||
from ydl.yt_dlp import YDL, update_ytdlp
|
||||
|
||||
|
||||
def signal_handler(sig, frame):
|
||||
|
@ -128,7 +128,7 @@ create_directories(*url_list.keys(), args.download_cache_file_directory)
|
|||
def do_update():
|
||||
if not args.no_update:
|
||||
print('Checking if yt-dlp needs to be updated...')
|
||||
updated = ydl.update_ytdlp()
|
||||
updated = update_ytdlp()
|
||||
if updated:
|
||||
print('Restarting program...')
|
||||
restart_program()
|
||||
|
|
Reference in New Issue