Reviewed-on: https://git.example.com/jarianc/youtube-cli/pulls/12
This commit is contained in:
commit
2789b03f45
@ -754,7 +754,7 @@ class YouTubeCLI:
|
|||||||
"""Download a video using yt-dlp with progress bar."""
|
"""Download a video using yt-dlp with progress bar."""
|
||||||
|
|
||||||
# Validate URL before proceeding
|
# Validate URL before proceeding
|
||||||
if not url or not isinstance(url, str) or url.strip() == "":
|
if not url or not isinstance(url, str):
|
||||||
logger.error("Invalid or empty video URL provided.")
|
logger.error("Invalid or empty video URL provided.")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user