FaisalUmair / udemy-downloader-gui

A desktop application for downloading Udemy Courses
MIT License
6.14k stars 1.72k forks source link

Downloads stop and get stuck #336

Open luisuxuk opened 4 years ago

luisuxuk commented 4 years ago

This is still happening in the latest version 1.8.0. (and it happened in the version previous to that one).

In most cases the course download speed drops to 0, the pause button becomes deactivated and the download doesn't continue. I have tried deleting the partial course folder and re-starting Udeler, and clicking it to start the download afresh, it resumes and then gets stuck again. I also tried to download one course at a time, and it didn't work either. Out of 50 courses, it happens to the same 9 courses anywhere and in different computers (both MacBooks with High Sierra) and networks (home and work).

In some other downloads, 1 out of 50 courses, a download error appears and an option to retry appears but in most cases it just fails again and again.

Thanks for your effort in creating such a useful tool and for any help to sort this issue please.

yoyoloit commented 4 years ago

Me too I have this problem, Please could you fix it. Thanks

rodrigofbm commented 4 years ago

Same here. Debian 10.2 Udeler 1.8.0

"Download failed. Click to try again."

LordKenzo commented 4 years ago

Same here for a lot of courses.

Smitty010 commented 4 years ago

It appears that udemy has added some kind of digital signing on the request. Once in a while I will get a 1k "mp4" file. If I open that with a text editor, I can see a message saying "The request signature we calculated does not match the signature you provided. Check your key and signing method.". This is followed by a bunch of hex information. This happens on some but not all courses.

luisuxuk commented 4 years ago

Hi fellas, just to make it clear, I am having two different issues:

Issue 1, the download speed drops to 0 and silently stops without any error, it justs stops and stays stuck. The pause and play buttons become unresponsive.

Issue 2, the error "Download failed. Click to try again" appears and clicking it just restarts the download to thorw the error again.

Jassi10 commented 4 years ago

Me too facing this issue now,inspite of deleting the mtd file, download stops within seconds, it seems Udemy has added some restriction or checks..... @FaisalUmair can you please look into this,thanks

Jassi10 commented 4 years ago

Hi fellas, just to make it clear, I am having two different issues:

Issue 1, the download speed drops to 0 and silently stops without any error, it justs stops and stays stuck. The pause and play buttons become unresponsive.

Issue 2, the error "Download failed. Click to try again" appears and clicking it just restarts the download to thorw the error again.

Yes I am facing the same issue today.

LordKenzo commented 4 years ago

It appears that udemy has added some kind of digital signing on the request. Once in a while I will get a 1k "mp4" file. If I open that with a text editor, I can see a message saying "The request signature we calculated does not match the signature you provided. Check your key and signing method.". This is followed by a bunch of hex information. This happens on some but not all courses.

You are right. Some courses (not all) have some signature check before sending the video file from the server.

SankalpaFernando commented 4 years ago

Use the new release of the Udeler which is 18.0.1 it worked for me.It just commited 8 hours ago https://github.com/FaisalUmair/udemy-downloader-gui/releases

bobbintb commented 4 years ago

It appears that udemy has added some kind of digital signing on the request. Once in a while I will get a 1k "mp4" file. If I open that with a text editor, I can see a message saying "The request signature we calculated does not match the signature you provided. Check your key and signing method.". This is followed by a bunch of hex information. This happens on some but not all courses.

You are right. Some courses (not all) have some signature check before sending the video file from the server.

What does that mean? Does that mean it won't work with Udeler?

Smitty010 commented 4 years ago

Whatever the issue was, I believe it was resolved by 1.8.1 update in March. I haven't had the problem since I updated to that version. Udeler is working fine for me.

bobbintb commented 4 years ago

Whatever the issue was, I believe it was resolved by 1.8.1 update in March. I haven't had the problem since I updated to that version. Udeler is working fine for me.

I still get the 1k issue with 1.8.2.

Smitty010 commented 4 years ago

I was only referring to the downloads getting stuck problem.

I have seen mp4s that are 1K. If you open them in a text editor, you'll probably see they're actually some kind of error message. The only thing I've seen in this regard (since the 1.8.1 update) is that my login timed out. If you have a slow internet and it takes a long time to download a class and it's the items at the end where you see the 1k mp4 files, then it's likely you're login is timing out. You'll see that the 1k files are authentication errors. If you are trying to download a lot of classes at once and (for example), let it run all night, then it's likely your login is timing out. You need to do fewer classes at a time.

One solution for classes you didn't get all the files for is to delete the 1k files, restart udeler and have it redownload the class. It won't redownload any videos that are already there and so should get to the later videos quicker. Check other file types where you find the 1k mp4s. When this happens, I usually find that attachments and subtitle files are also bad (delete them to so udeler will do a redownload).

Udeler does seem to get confused sometimes and redownload some attachments (even if they are already there) when you do a restart, but I just watch for that and delete any duplicate attachments (same name and size with a different number at the beginning). I consider that a minor problem.

Otherwise, you should post what's in the 1k file (again, open it in a text editor like notepad -- it's not really an mp4 file).

bobbintb commented 4 years ago

I was only referring to the downloads getting stuck problem.

I have seen mp4s that are 1K. If you open them in a text editor, you'll probably see they're actually some kind of error message. The only thing I've seen in this regard (since the 1.8.1 update) is that my login timed out. If you have a slow internet and it takes a long time to download a class and it's the items at the end where you see the 1k mp4 files, then it's likely you're login is timing out. You'll see that the 1k files are authentication errors. If you are trying to download a lot of classes at once and (for example), let it run all night, then it's likely your login is timing out. You need to do fewer classes at a time.

One solution for classes you didn't get all the files for is to delete the 1k files, restart udeler and have it redownload the class. It won't redownload any videos that are already there and so should get to the later videos quicker. Check other file types where you find the 1k mp4s. When this happens, I usually find that attachments and subtitle files are also bad (delete them to so udeler will do a redownload).

Udeler does seem to get confused sometimes and redownload some attachments (even if they are already there) when you do a restart, but I just watch for that and delete any duplicate attachments (same name and size with a different number at the beginning). I consider that a minor problem.

Otherwise, you should post what's in the 1k file (again, open it in a text editor like notepad -- it's not really an mp4 file).

That's what I've found, but it took a while to figure out. Some classes I've had are really large, like over 30gb, so I've run into it. But as you said, sometimes it gets confused, so I've seen it redownload videos after resuming that are already downloaded, but with a different number. The video hashes are the exact same. When I encounter the 1k issue, I close Udeler, delete the entire chapter with the 1k files, and resume. It doesn't seem to get confused that way.

Smitty010 commented 4 years ago

I've done that, but sometimes I still find duplicate attachments in earlier chapters.

On Sat, Jun 20, 2020 at 10:34 PM bobbintb notifications@github.com wrote:

I was only referring to the downloads getting stuck problem.

I have seen mp4s that are 1K. If you open them in a text editor, you'll probably see they're actually some kind of error message. The only thing I've seen in this regard (since the 1.8.1 update) is that my login timed out. If you have a slow internet and it takes a long time to download a class and it's the items at the end where you see the 1k mp4 files, then it's likely you're login is timing out. You'll see that the 1k files are authentication errors. If you are trying to download a lot of classes at once and (for example), let it run all night, then it's likely your login is timing out. You need to do fewer classes at a time.

One solution for classes you didn't get all the files for is to delete the 1k files, restart udeler and have it redownload the class. It won't redownload any videos that are already there and so should get to the later videos quicker. Check other file types where you find the 1k mp4s. When this happens, I usually find that attachments and subtitle files are also bad (delete them to so udeler will do a redownload).

Udeler does seem to get confused sometimes and redownload some attachments (even if they are already there) when you do a restart, but I just watch for that and delete any duplicate attachments (same name and size with a different number at the beginning). I consider that a minor problem.

Otherwise, you should post what's in the 1k file (again, open it in a text editor like notepad -- it's not really an mp4 file).

That's what I've found, but it took a while to figure out. Some classes I've had are really large, like over 30gb, so I've run into it. But as you said, sometimes it gets confused, so I've seen it redownload videos after resuming that are already downloaded, but with a different number. The video hashes are the exact same. When I encounter the 1k issue, I close Udeler, delete the entire chapter with the 1k files, and resume. It doesn't seem to get confused that way.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/FaisalUmair/udemy-downloader-gui/issues/336#issuecomment-647077700, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4V7S4XKCY6AIS4SFMV4I3RXWEUVANCNFSM4JQA4AUA .