raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.31k stars 3k forks source link

[YouTube Downloader] Crashes when attempting to download a live premiere #13710

Closed chrismessina closed 2 months ago

chrismessina commented 2 months ago

Extension

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

Raycast Version

1.79.1

macOS Version

14.5 (23F79)

Description

This is the error I got:

TypeError: Expected a finite number, got number: NaN

DV:index.tsx:20:41

---
17: import fs from "fs";
18: 
19: export default function DownloadVideo() {
20:   const [loading, setLoading] = useState(false);
21:   const [title, setTitle] = useState("");
22:   const [formats, setFormats] = useState<videoFormat[]>([]);
23:   const [error, setError] = useState(0);
---

_r:index.js:8:2593
    at ray-navigation-stack
Eo:index.js:8:2094

Steps To Reproduce

  1. Attempt to download a video that is a live premiere.
  2. Extension crashes

Current Behaviour

On the YouTube video:

2024-07-26 (15 33 01) Arc

The extension after pasting the video URL:

2024-07-26 (15 31 50) Arc

Expected Behaviour

If the video is a live premiere, the extension should report an error that the video is not available, is a live premiere, and/or can be downloaded later.

raycastbot commented 2 months ago

Thank you for opening this issue!

🔔 @vimtor @pernielsentikaer @darmiel @ridemountainpig 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 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.
ridemountainpig commented 2 months ago

@raycastbot assign me