oleksis / youtube-dl-gui

A cross platform front-end GUI of the popular youtube-dl written in wxPython.
https://oleksis.github.io/youtube-dl-gui/
The Unlicense
1.69k stars 109 forks source link

"CLI Backend download failed" with proxy #172

Open Bolb389 opened 8 months ago

Bolb389 commented 8 months ago

Please follow the guide below

WARNING

All invalid issues will be rejected!!


Before going further


What is the purpose of your issue?

Please remove any sections between (---) if they are not related to your issue


Bug report

If the problem occurs when downloading a URL please provide the full verbose output as follows:

  1. Restart yt-dlg
  2. Go to Options > Extra tab
  3. Enable Debug youtube-dl
  4. Go to Options > Advanced tab and Clear your log content
  5. Try to download the URL
  6. Copy the whole log content and insert it between the ``` part below
2024-01-31 11:19:41,135-DEBUG-Worker_1-Failed to start process: ['C:\\Users\\user\\AppData\\Roaming\\yt-dlg\\yt-dlp.exe', '--newline', '--proxy', 'http://10.202.1.239:8080', '--user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.', '-i', '-o', 'C:\\Users\\user\\%(title)s.%(ext)s', '-v', '--ignore-config', '--hls-prefer-native', 'https://tube-numerique-educatif.apps.education.fr/w/ux9nBPMugDxBEbm1Y6SjoL']
2024-01-31 11:19:41,135-DEBUG-Worker_1-[WinError 2] Le fichier spécifié est introuvable

What operating system do you use ?

Windows 11 Education 23H2

List of actions to perform to reproduce the problem:

  1. .. connect your computer to a network wich need a proxy to access internet
  2. .. remove or rename the folder AppData\Roaming\yt-dlg (to simulate a new install)
  3. .. Open yt-dlg
  4. .. Access Options > Download
  5. .. In Network:Proxy, set the proxy, eg. http://10.202.1.239:8080
  6. .. Click "Close" to go back to main window
  7. .. Add an url to download , and click "Add"
  8. .. Click on the Start button

What is the expected behaviour ?

yt-dlg should download the CLI-backend (yt-dlp.exe), then download the video.

What happens instead ?

yt-dlg fail to dowload the CLI-backend (yt-dlp.exe), and then failed to download the video :

The following messages are displayed : Downloading latest cli backend. Please Wait... CLI Backend download failed [] Downloaded 0 URL(s) in 0 day(s) 0 minute(s) 0 second(s) (popup) "Downloads completed"


What operating system do you use ?

Windows 11 Education 23H2


When I use youtube-dlg with a proxy, it fail to download the CLI backend, and the video. But if I put yt-dlp.exe myself in the directory C:\Users\user\AppData\Roaming\yt-dlg\ , it is working fine (even with the proxy), the video is downloaded.

So it seems the problem is only with the download of yt-dlp.exe. Maybe the proxy is only used when downloading a video, not when downloading yt-dlp.exe ? If yes, is it possible to add support of the proxy for the download of yt-dlp.exe ?

Have a nice day :-)