Merge pull request 'Fix #4: Remove 3rd useless URL check' (#12) from fix/issue-4 into main

Reviewed-on: https://git.example.com/jarianc/youtube-cli/pulls/12
This commit is contained in:
Jarian Cottingham 2026-07-05 01:46:32 -05:00
commit 2789b03f45

View File

@ -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