fix: remove redundant url.strip() check in download_video
not url already catches empty string, making url.strip() == '' the 3rd useless condition.
This commit is contained in:
parent
bbfd646f8b
commit
b33bed7a6e
@ -754,7 +754,7 @@ class YouTubeCLI:
|
||||
"""Download a video using yt-dlp with progress bar."""
|
||||
|
||||
# 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.")
|
||||
return False
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user