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):
|
||||
|
@ -54,7 +54,7 @@ parser.add_argument('--ignore-downloaded', '-i', action='store_true', help='Igno
|
|||
parser.add_argument('--erase-downloaded-tracker', '-e', action='store_true', help='Erase the tracked video file.')
|
||||
parser.add_argument('--ratelimit-sleep', type=int, default=5,
|
||||
help='How many seconds to sleep between items to prevent rate-limiting. Does not affect time between videos as you should be fine since it takes a few seconds to merge everything and clean up.')
|
||||
parser.add_argument('--input-datatype', choices=['auto', 'txt', 'yaml'], default='auto', help='The datatype of the input file. If set to auto, the file will be scanned for a URL on the firstline.'
|
||||
parser.add_argument('--input-datatype', choices=['auto', 'txt', 'yaml'], default='auto', help='The datatype of the input file. If set to auto, the file will be scanned for a URL on the first line.'
|
||||
'If is a URL, the filetype will be set to txt. If it is a key: value pair then the filetype will be set to yaml.')
|
||||
parser.add_argument('--log-dir', default=None, help='Where to store the logs. Must be set when --output is not.')
|
||||
parser.add_argument('--verbose', '-v', action='store_true')
|
||||
|
@ -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