aandrew-me / ytDownloader

A modern GUI App for downloading Videos and Audios from hundreds of sites
https://ytdn.netlify.app/
GNU General Public License v3.0
924 stars 85 forks source link

[Feature Request] Why do I need to download files for the first run on windows #177

Closed muyiacc closed 9 months ago

muyiacc commented 9 months ago

Description

Failed to download necessary files. Please check your network and try again

Multiple attempts failed

图片

Can you help me solve it? Thank you

aandrew-me commented 9 months ago

It downloads yt-dlp, its could be failing because app cant access the internet. Did you block its access to internet?

muyiacc commented 9 months ago

No, I can connect to the network. I didn't do any extra actions from installing it

aandrew-me commented 9 months ago

Did Windows firewall show any pop-up?

muyiacc commented 9 months ago

No, can I manually download yt-dlp to fix it, and if so, what should I do?

aandrew-me commented 9 months ago

Yes you can

aandrew-me commented 9 months ago

Download this - https://github.com/yt-dlp/yt-dlp/releases/download/2023.11.16/yt-dlp.exe Rename it to ytdlp.exe Press Win + R to open the Run dialog box. Type %HOMEPATH% and press Enter. This will open your home directory. There will likely be a folder called .ytDownloader, if not create one. Then put that ytdlp.exe file in it

muyiacc commented 9 months ago

Okay, thank you

aandrew-me commented 9 months ago

Is it working now?

muyiacc commented 9 months ago

No, I found that .ytDownloader already has ytdlp.exe

muyiacc commented 9 months ago

I just tried running winget install yt-dlp in powershell and it still doesn't solve the problem.

图片

aandrew-me commented 9 months ago

Did you install ytDownloader from winget?

muyiacc commented 9 months ago

No, I installed it via YTDownloader_Win.exe.

aandrew-me commented 9 months ago

After you open the app, press Ctrl + Shift + I and it will open dev tools Take a screenshot and send

muyiacc commented 9 months ago

图片

aandrew-me commented 9 months ago

Open the 2nd tab, (in English its written Console) and take a screenshot

muyiacc commented 9 months ago

图片

aandrew-me commented 9 months ago

Paste this there and press enter, see what you get cp.execSync(ytdlpDownloadPath)

muyiacc commented 9 months ago

I just restarted my computer and it seemed to work while I was waiting

图片

I'm extremely grateful.

aandrew-me commented 9 months ago

Well, glad to hear!

aandrew-me commented 9 months ago

I will keep the 'restarting the computer' thing in mind next time

aandrew-me commented 9 months ago

Have a nice day/night!

muyiacc commented 9 months ago

Appreciate it! Have a nice day/night too!