You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
List of actions to perform to reproduce the problem:
Open yt-dlg
Set the download folder using the "..." button
Choose a path that causes the folder to be on an external hard drive
Exit yt-dlg and remove the external hard drive
Attempt to open yt-dlg afterwards
What is the expected behavior ?
Yt-dlg opens without issue.
What happens instead ?
Yt-dlg gives the error message "failed to execute script _ _ main _ _" and refuses open.
I was downloading a Youtuber's channel using yt-dlg with the yt-dlp backend (2021.10.10) and the custom made FFmpeg versions that it recommends (https://github.com/yt-dlp/FFmpeg-Builds). I downloaded a good amount of the content at first on my computer's internal hard drive, but space was getting low so I stopped and moved all of that content to an external hard drive. I then started downloading the rest of the content after making the download path lead to the external hard drive. I didn't finish once more (since Youtube throttles downloads now and makes everything take forever) so I started again the next day.
I felt like setting up yt-dlg with the link to the Youtube channel before attaching the external hard drive, so I attempted to start it up to do so. However, the program didn't function, spitting out the error "failed to execute script _ _ main _ _". I tried opening it a few more times in case it was a random occurrence, but it kept happening. I then restarted the computer to try and see if that would help but it once more gave the same error and result. I attempted to fix it by deleting the exe and replacing it to see if I somehow broke it doing something else, but it still gave the same results. Finally I got a spark and reattached the external hard drive and THEN attempted to open the program. It opened without any issue and ready to go.
I believe this is due to the program being unable to open itself when it no longer can find the download folder path that it was set to in a previous session.
Doing a little testing on this train of thought, I created a "Test" folder and made that the download folder. I downloaded part of a video to make sure it was working and then stopped the download and exited yt-dlg. I then deleted the "Test" folder and went back to yt-dlg to see if it would open. I then saw that it did and that it had recreated the "Test" folder, something I didn't know that the program could do.
Given this, I now think that the reason yt-dlg didn't open before I put in my external hard drive is because it was trying to create the previous download path that it used. Since that path was on an external it couldn't find a way to recreate that path, freaked out, and refused to open until I reattached the external to allow it to use the path it expected.
In short, I'm pretty sure there is a bug with yt-dlg where the program is unable to open itself in the case of the previously used download path no longer being available and said path is unable to be recreated by yt-dlg itself for one reason or another.
The text was updated successfully, but these errors were encountered:
What is the purpose of your issue?
Bug report
What operating system do you use ?
Windows 10 x64
List of actions to perform to reproduce the problem:
What is the expected behavior ?
Yt-dlg opens without issue.
What happens instead ?
Yt-dlg gives the error message "failed to execute script _ _ main _ _" and refuses open.
I was downloading a Youtuber's channel using yt-dlg with the yt-dlp backend (2021.10.10) and the custom made FFmpeg versions that it recommends (https://github.com/yt-dlp/FFmpeg-Builds). I downloaded a good amount of the content at first on my computer's internal hard drive, but space was getting low so I stopped and moved all of that content to an external hard drive. I then started downloading the rest of the content after making the download path lead to the external hard drive. I didn't finish once more (since Youtube throttles downloads now and makes everything take forever) so I started again the next day.
I felt like setting up yt-dlg with the link to the Youtube channel before attaching the external hard drive, so I attempted to start it up to do so. However, the program didn't function, spitting out the error "failed to execute script _ _ main _ _". I tried opening it a few more times in case it was a random occurrence, but it kept happening. I then restarted the computer to try and see if that would help but it once more gave the same error and result. I attempted to fix it by deleting the exe and replacing it to see if I somehow broke it doing something else, but it still gave the same results. Finally I got a spark and reattached the external hard drive and THEN attempted to open the program. It opened without any issue and ready to go.
I believe this is due to the program being unable to open itself when it no longer can find the download folder path that it was set to in a previous session.
Doing a little testing on this train of thought, I created a "Test" folder and made that the download folder. I downloaded part of a video to make sure it was working and then stopped the download and exited yt-dlg. I then deleted the "Test" folder and went back to yt-dlg to see if it would open. I then saw that it did and that it had recreated the "Test" folder, something I didn't know that the program could do.
Given this, I now think that the reason yt-dlg didn't open before I put in my external hard drive is because it was trying to create the previous download path that it used. Since that path was on an external it couldn't find a way to recreate that path, freaked out, and refused to open until I reattached the external to allow it to use the path it expected.
In short, I'm pretty sure there is a bug with yt-dlg where the program is unable to open itself in the case of the previously used download path no longer being available and said path is unable to be recreated by yt-dlg itself for one reason or another.
The text was updated successfully, but these errors were encountered: