Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YouTube Downloader] Invalid YouTube URL #16584

Open
wzxu opened this issue Jan 24, 2025 · 9 comments · May be fixed by #16595
Open

[YouTube Downloader] Invalid YouTube URL #16584

wzxu opened this issue Jan 24, 2025 · 9 comments · May be fixed by #16595
Labels
bug Something isn't working extension: youtube-downloader Issues related to the youtube-downloader extension extension Issues related to one of the extensions in the Store

Comments

@wzxu
Copy link

wzxu commented Jan 24, 2025

Extension

https://www.raycast.com/vimtor/youtube-downloader

Raycast Version

1.89.1

macOS Version

No response

Description

URL is valid but does not work in extension: https://www.youtube.com/watch?v=Wdll9P9icJU

Image

Steps To Reproduce

  1. Activate YouTube Downloader extension
  2. Fill in URL: https://www.youtube.com/watch?v=Wdll9P9icJU
  3. Observe the error message

Current Behaviour

Says "Invalid YouTube URL"

Expected Behaviour

Should work normally

@wzxu wzxu added bug Something isn't working extension Issues related to one of the extensions in the Store labels Jan 24, 2025
@raycastbot raycastbot added the extension: youtube-downloader Issues related to the youtube-downloader extension label Jan 24, 2025
@raycastbot
Copy link
Collaborator

Thank you for opening this issue!

🔔 @vimtor @pernielsentikaer @darmiel @ridemountainpig @remorses @LitoMore you might want to have a look.

💡 Author and Contributors commands

The author and contributors of vimtor/youtube-downloader can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot close as not planned Closes the issue as not planned.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopens the issue.
  • @raycastbot assign me Assigns yourself to the issue.
  • @raycastbot good first issue Adds the "Good first issue" label to the issue.
  • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.

@LitoMore
Copy link
Contributor

I cannot reproduce the error.

Can you update the extension and retry?

@vimtor
Copy link
Contributor

vimtor commented Jan 24, 2025

We should probably add better error handling because this probably comes from the YT API. Maybe adding actions to the toast so users can copy/paste the API error it gave instead of showing this generic message.

@LitoMore LitoMore linked a pull request Jan 24, 2025 that will close this issue
5 tasks
@wzxu
Copy link
Author

wzxu commented Jan 24, 2025

@LitoMore No extension update found. Also tried uninstall and reinstall extension and still the same.
By the way I'm using the executables installed with Nix not Homebrew (I updated the paths in extension settings), but yt-dlp works properly in terminal so it's probably not the executable's problem.
Not familiar with Raycast extension but is there any log I can find to try to figure out what the problem may be?

@wzxu
Copy link
Author

wzxu commented Jan 25, 2025

@LitoMore I think the problem here is that /opt/homebrew/bin/yt-dlp is hardcoded here instead of following the "yt-dlp Path" set in extension settings. To test, I symlinked the executables installed by Nix into /opt/homebrew/bin and then it can parse the URL.


PS. Now I'm hit with another error.

Image

I tried installing yt-dlp from Homebrew and everything works fine, so I guess I'll probably open another issue for Nix compatibility, but that's beyond this one.

@txrunn
Copy link

txrunn commented Jan 25, 2025

I tried installing yt-dlp successfully but the Raycast extension, but the extension does not see the installed CLI tool.

Image

@LitoMore
Copy link
Contributor

@txrunn You should update the path from the extension preference.

@LitoMore
Copy link
Contributor

I just checked the code, it looks the path has been hardcoded in the source. I've updated my PR #16595 to fix this issue.

@Sheldontao
Copy link

For users who are using a VPN.

I found the network activity of "*YouTube.com" processed by MitM of my VPN. So it depends on you wether or not delete it in Hostname of your config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working extension: youtube-downloader Issues related to the youtube-downloader extension extension Issues related to one of the extensions in the Store
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants