Skip to content

[YouTube Downloader] Improve error message#16595

Merged
raycastbot merged 6 commits intoraycast:mainfrom
LitoMore:yt-downloader/improve-error-message
Feb 4, 2025
Merged

[YouTube Downloader] Improve error message#16595
raycastbot merged 6 commits intoraycast:mainfrom
LitoMore:yt-downloader/improve-error-message

Conversation

@LitoMore
Copy link
Copy Markdown
Contributor

@LitoMore LitoMore commented Jan 24, 2025

Description

Resolves #15768
Resolves #16584
Fixes #16795

  • Improve error message
  • Fix URL validator while link has no protocol prefix
  • Replace execa with nano-spawn
  • Adjust import orders
  • Fix yt-dlp from preferences

The previous error message always shows the Invalid YouTube URL even on some yt-dlp execution errors. I've exposed the actual yt-dlp error message to users for a better expression.

I also updated the error message Invalid YouTube URL to Invalid URL to prepare for the support of other URLs as #16570 (comment) mentioned.

This also fixed three issues #15768 #16584 #16795 that user cannot select their specific yt-dlp from preferences.

Checklist

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension fix / improvement Label for PRs with extension's fix improvements extension: youtube-downloader Issues related to the youtube-downloader extension OP is contributor The OP of the PR is a contributor of the extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid YouTube URL [YouTube Downloader] Invalid YouTube URL [YouTube Downloader] ... homebrew path

5 participants