Preserve critical defaults and improve comments

Co-authored-by: krau <71133316+krau@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-19 04:33:39 +00:00
parent 154ea47e6b
commit ce88dc70f4
2 changed files with 6 additions and 1 deletions

View File

@@ -43,6 +43,8 @@ func handleYtdlpCmd(ctx *ext.Context, update *ext.Update) error {
nextArg := strings.TrimSpace(args[i+1])
if nextArg != "" && !strings.HasPrefix(nextArg, "-") {
// Check if it's clearly a URL (has ://)
// This handles common video URLs (http://, https://)
// For other yt-dlp inputs, users should ensure proper formatting
if strings.Contains(nextArg, "://") {
// It's a URL, don't consume it as a flag value
continue