Skip to content
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.

DRM protected video streams are being skipped (udemy-dl not downloading videos) #627

Open
nChauhan91 opened this issue Apr 13, 2021 · 145 comments
Labels
won't fix This will not be worked on

Comments

@nChauhan91
Copy link

When i'm trying to download any course any videos that have their URLs starting in blob:https://URL_UDEMY are being skipped.

the lectures are recognized but only assets in that chapter are downloaded. I have all requirements including ffmpeg installed & working in command line.

[i] : Downloading chapter : (2)
[i] : Chapter (02 JavaScript Refresher)
[i] : Found (13) lecture(s).

[i] : Downloading asset(s)
[i] : Downloading (022 next-gen-js-summary.pdf)
[+] : Asset : '022 next-gen-js-summary.pdf' (already downloaded)

Lectures were found but not downloaded

  • OS Platform: macOS Big Sur & Windows 10
  • Python Version - Python 3
@evon0101
Copy link

Yes, I recently downloadeda courses. and it only downloaded assests no videos. Why?

@xalgord
Copy link

xalgord commented Apr 13, 2021

i got the same problem, it is skipping some videos.

@r0oth3x49 r0oth3x49 added account-needed Account credentials are required to reproduce and fix cant-reproduce Unable to reproduce the issue labels Apr 15, 2021
@r0oth3x49
Copy link
Owner

@nChauhan91 i might need cookies or creds of an account to reproduce and fix the issue as i can't reproduce it with the courses i have in my account.

the otherway could be finding a course which is free and produces the same issue so that i can enroll and check against that.

for courses that i have in my account, udemy-dl is working fine for me.

@xalgord
Copy link

xalgord commented Apr 15, 2021

okay you can take my account: access_token = ****

@xalgord
Copy link

xalgord commented Apr 15, 2021

and try to use this command:

python3 udemy-dl.py https://www.udemy.com/course/web-development-masterclass-complete-certificate-course/learn/lecture/5770596?start=45#overview --skip-sub -k cookie.txt.txt

@nChauhan91
Copy link
Author

This is the course which i had issues with, in this specifically chapter 2 had videos starting URL with blob

https://www.udemy.com/course/react-the-complete-guide-incl-redux/

@r0oth3x49
Copy link
Owner

r0oth3x49 commented Apr 15, 2021

okay you can take my account: access_token = ****

@xalgord thanks for sharing your cookies you could have shared it on my email though. never share such things publicly as i will not be responsible for misuse its just an advice i have edited the comment, you can re-login or update password so that the access-token gets changed as using this token anyone with udemy-dl will be able to download all courses from your account without your permission.

my email is also listed on profile: logout and login back again and share the new access_token over email nasir251292@gmail.com,

If privacy is no concern for you then it's okay i will continue testing with the access token you provided and you don't need to change anything. the token will expire soon though but i have checked for me the token even worked for days. (never checked expiry time)

@xalgord
Copy link

xalgord commented Apr 15, 2021

okay you can take my account: access_token = ****

@xalgord thanks for sharing your cookies you could have shared it on my email though. never share such things publicly as i will not be responsible for misuse its just an advice i have deleted the comment, you can re-login or update password so that the access-token gets changed as using this token anyone with udemy-dl will be able to download all courses from your account without your permission.

my email is also listed on profile: logout and login back again and share the new access_token over email nasir251292@gmail.com,

If privacy is no concern for you then it's okay i will continue testing with the access token you provided and you don't need to change anything. the token will expire soon though but i have checked for me the token even worked for days. (never checked expiry time)

okkay sir, i understand.

@KoichaDev
Copy link

Has this been fixed? I also get issue on this course: https://www.udemy.com/course/react-the-complete-guide-incl-redux/
It doesn't download anything from Section 2: JavaScript Refresher and is skipping some other videos on Section 3 as well. Can't remember exactly on top of my head.

@nChauhan91
Copy link
Author

Has this been fixed? I also get issue on this course: https://www.udemy.com/course/react-the-complete-guide-incl-redux/
It doesn't download anything from Section 2: JavaScript Refresher and is skipping some other videos on Section 3 as well. Can't remember exactly on top of my head.

This question was made exactly for this course & chapter 😁

@neorus616
Copy link

neorus616 commented Apr 17, 2021

I have found another course with same problem i think
udemy.com/course/the-complete-guide-to-angular-2/

@Dudeonyx
Copy link

I noticed that the ones it skips for me are also disabled for download on the udemy site.
i.e the download button is greyed out for those courses

@stonekase
Copy link

Please add this course to the list of courses with alot of skips https://www.udemy.com/course/unrealcourse/learn/lecture/15637754

@termita81
Copy link

First, thanks for doing this tool!

Second, I am also encountering issues with https://www.udemy.com/course/the-web-developer-bootcamp - but only some sections/chapters, e.g. 29.

@r0oth3x49
Copy link
Owner

i have tried to it reproduce with cookies/access_token provided but unfortunately i was not able to do that on that particular course.
so i might need an account credentials to reproduce and fix the issue instead of access_token/cookies.

send account creds on: nasir251292@gmail.com (only one user having the course which is causing the issue which exact chapter number).

i 'm not able to reproduce the issue with access_token, i 'm asking for account because i need to debug it a bit deeper to check how i can make it possible to download or if it is possible or not.

@zhulinpinyu
Copy link

@r0oth3x49 https://github.com/r0oth3x49/udemy-dl/blob/master/udemy/extract.py#L398 m3u8 data has been encrypted please support decrypted.

Screen Shot 2021-04-19 at 16 37 41

Screen Shot 2021-04-19 at 16 37 54

Screen Shot 2021-04-19 at 16 38 09

@Xd43431T
Copy link

Xd43431T commented Apr 20, 2021

Hello, I have the same issue. Only download assets but video? Can you help me please. Below is the picture FYI. Found lectures but not download then.

image

@Xd43431T
Copy link

Xd43431T commented Apr 20, 2021

My course is https://ninjavan.udemy.com/course/case-study-powerpoint-2013-presentation-slide-by-slide/learn/lecture/5909112#overview, it happens nothing from Chapter 4 onwards.

I tried to test other courses. It happens also for all of the courses which I tested. Almost chapters are not filled in full video.

@Xd43431T
Copy link

Please add this course to the list of courses with alot of skips https://www.udemy.com/course/unrealcourse/learn/lecture/15637754

are you able to download at this time?

@h1n054ur
Copy link

same here skipping a bunch of courses and videos

@ambi1997
Copy link

Same here. I think Udemy upgraded its security(encryption).
It's the end(publicly) I guess.
RIP 😔

@Dudeonyx
Copy link

@r0oth3x49
Copy link
Owner

@r0oth3x49 https://github.com/r0oth3x49/udemy-dl/blob/master/udemy/extract.py#L398 m3u8 data has been encrypted please support decrypted.

Screen Shot 2021-04-19 at 16 37 41 Screen Shot 2021-04-19 at 16 37 54 Screen Shot 2021-04-19 at 16 38 09

i guess it was always encrypted. would be great if you can share your creds on my email so that i can check, If it's the issue with encryption i will implement a mechanism to download those as well.

email: nasir251292@gmail.com

@r0oth3x49
Copy link
Owner

Same here. I think Udemy upgraded its security(encryption).
It's the end(publicly) I guess.
RIP pensive

i can give it a try to implement a mechanism for downloading, but i need a proper account with the course i can reproduce the issue and then try implementing a fix if any.

@r0oth3x49
Copy link
Owner

I already have requested an account, I can't reproduce with the courses i have in my account so either provide me a free course URL that reproduces the issue or provide me an account creds on my email with the course url that is having the issue.

i have already tested it with cookies but it didn't helped, That's why i 'm asking for an account otherwise i can't do much about it if i can't reproduce the issue myself.

@r0oth3x49
Copy link
Owner

okay i guess i managed to figured it out i will check try implement a fix soon. Hopefully it will work.

@noorudd-in
Copy link

I already have requested an account, I can't reproduce with the courses i have in my account so either provide me a free course URL that reproduces the issue or provide me an account creds on my email with the course url that is having the issue.

i have already tested it with cookies but it didn't helped, That's why i 'm asking for an account otherwise i can't do much about it if i can't reproduce the issue myself.

I have emailed you bro. I have given you my account with then course url. Also Today there is new error. When I am trying to download the course, Its saying forbitten. Why??

@OdinVex
Copy link

OdinVex commented Jun 21, 2021

I won't be buying any more content from Udemy.

It's not that trivial, I believe. Of course, I used the possibility to download the content. This offers much more freedom of use.
And of course there is the permanent question "what is the meaning of 'lifetime'"?
Now, after downloading the lessons is not possible anymore, I crawled a little bit (I assume, everybody here did the same) and the result was really scaring. There are some sources, which offer to download the content for free. You may even request for a topic, if the required is not available at the downlaod source.
Of course I am annoyed about the current state. But on the other hand, Udemy can only exist if enough users pay. In the end, we gnash our teeth, but we should be grateful for the protection of the content.

Yeaaah no. Enough users do exist paying. For example... I did. This is a tired bull response given by publishers. It's been seen through, too. I can literally create my own CA cert, import it at system level, sign a fake kernel driver and have full system access any time I want. Doesn't stop a thing. It's just a hassle for legitimate users to do with what they want with the things they want.

Edit: We should probably get back on topic. "Boo DRM is in the way again."

@r0oth3x49
Copy link
Owner

I won't be buying any more content from Udemy.

It's not that trivial, I believe. Of course, I used the possibility to download the content. This offers much more freedom of use.
And of course there is the permanent question "what is the meaning of 'lifetime'"?
Now, after downloading the lessons is not possible anymore, I crawled a little bit (I assume, everybody here did the same) and the result was really scaring. There are some sources, which offer to download the content for free. You may even request for a topic, if the required is not available at the downlaod source.
Of course I am annoyed about the current state. But on the other hand, Udemy can only exist if enough users pay. In the end, we gnash our teeth, but we should be grateful for the protection of the content.

Yeaaah no. Enough users do exist paying. For example... I did. This is a tired bull response given by publishers. It's been seen through, too. I can literally create my own CA cert, import it at system level, sign a fake kernel driver and have full system access any time I want. Doesn't stop a thing. It's just a hassle for legitimate users to do with what they want with the things they want.

Edit: We should probably get back on topic. "Boo DRM is in the way again."

didn't get your point the last one

@erickvh
Copy link

erickvh commented Jun 25, 2021

It's happening the same to me right now,
in my case, I download my own courses due to my internet connection sometimes goes down and I prefer to have the courses in a better resolution when this happens, so this is a little bit sad.

Anyway thanks for your work on this amazing tool @r0oth3x49

@a8uh35h4m
Copy link

Hi @r0oth3x49 bhai,

Should we just go ahead and close this ticket as no solution available ?
I think it was a good run for whatever period this worked.

@joaobrasil65
Copy link

joaobrasil65 commented Jun 25, 2021 via email

@mohgabr
Copy link

mohgabr commented Jun 25, 2021

I too need a workaround simply because I've paid for the courses....all of the ones I want offline....and I have an internet connection only for small bursts of time...I can't use Udemy online to do the courses as needed. I don't want free content. I just want offline content. If anyone can help me with this use case, I would be grateful. If Udemy simply gave us the same functionality as the Android app, we would be good to go. You can contact me on Discord @ SirGarbagelo#3805

On Mon, Jun 21, 2021 at 12:36 PM Odin Vex @.***> wrote: I won't be buying any more content from Udemy. It's not that trivial, I believe. Of course, I used the possibility to download the content. This offers much more freedom of use. And of course there is the permanent question "what is the meaning of 'lifetime'"? Now, after downloading the lessons is not possible anymore, I crawled a little bit (I assume, everybody here did the same) and the result was really scaring. There are some sources, which offer to download the content for free. You may even request for a topic, if the required is not available at the downlaod source. Of course I am annoyed about the current state. But on the other hand, Udemy can only exist if enough users pay. In the end, we gnash our teeth, but we should be grateful for the protection of the content. Yeaaah no. Enough users do exist paying. For example... I did. This is a tired bull response given by publishers. It's been seen through, too. I can literally create my own CA cert, import it at system level, sign a fake kernel driver and have full system access any time I want. Doesn't stop a thing. It's just a hassle for legitimate users to do with what they want with the things they want. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#627 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACZ3XKNUHI4L7OSKG5KMRHDTT5TB7ANCNFSM423F5HFQ .

There is a workaround, you can use any android emulator and use the android app on it to download the course, till this issue is fixed

@joaobrasil65
Copy link

joaobrasil65 commented Jun 25, 2021 via email

@OdinVex
Copy link

OdinVex commented Jun 25, 2021

I do some Android Development and I have done that but it is extremely extremely slow and I cannot seem to correct that in the emulator. But thanks for the thought.

Make sure you're running the x86-64 build of Android's image and turn on hardware acceleration. (SVM, etc, look into hardware virtualization for your hardware). If it is still slow, you've either not got it configured correctly or your CPU is far too old for hardware virtualization.

@joaobrasil65
Copy link

joaobrasil65 commented Jun 25, 2021 via email

@OdinVex
Copy link

OdinVex commented Jun 25, 2021

The emulator runs fine. It is just the Udemy app in the emulator. If you have an emulator set up, see if you can download videos to the app on a Windows emulator.. I essentially cannot. It just says downloading but it does not actually do it , it seems. I've tried various emulators and none work. I'm wondering if Udemy has somehow disabled this function on an emulator?

The Android API can usually tell an app if they're running in an emulator, so I'm sure they're going to do that. I took your comment of 'slow' as the emulator.

@r0oth3x49 r0oth3x49 added won't fix This will not be worked on and removed under-observation The issue will be fixed soon. labels Jun 27, 2021
@r0oth3x49 r0oth3x49 pinned this issue Jun 27, 2021
@anishkgt
Copy link

same here !

@Chandler-Kluser
Copy link

The same thing happened here, Is there any solution? Some videos are being downloaded, others not!

@OdinVex
Copy link

OdinVex commented Jun 30, 2021

same here !

The same thing happened here, Is there any solution? Some videos are being downloaded, others not!

Did you two bother to even read?

@Chandler-Kluser
Copy link

same here !

The same thing happened here, Is there any solution? Some videos are being downloaded, others not!

Did you two bother to even read?

if the dev won't fix the repo is useless.

thanks to the dev who made a great job so far, I have left a donation for him in hope of this issue be fixed, heartbreaking...

@OdinVex
Copy link

OdinVex commented Jul 2, 2021

same here !

The same thing happened here, Is there any solution? Some videos are being downloaded, others not!

Did you two bother to even read?

if the dev won't fix the repo is useless.

thanks to the dev who made a great job so far, I have left a donation for him in hope of this issue be fixed, heartbreaking...

No, udemy-dl can still rip non-DRM stuff, including files. Some authors have begun to upload their videos as attachments in response to people asking for offline, udemy-dl can download those. >_> It can also rip subtitles, which I find quite useful. Most sources I obtain from (what I've purchased) don't supply subtitles, or they forcibly embed their own and such, while udemy-dl can still give me the subtitles.

@joaobrasil65
Copy link

I pay for all the courses I want but I can't download them and that is a problem because I have intermittent internet. Someone has solved this problem because some of these tutorial download sites are still getting courses. I have example sites.

I will have to resort to using them if a solution is not found. I am always open to any suggestions here.................................. I don't want free stuff. Just offline access to what I've paid for.

@Chandler-Kluser
Copy link

I pay for all the courses I want but I can't download them and that is a problem because I have intermittent internet. Someone has solved this problem because some of these tutorial download sites are still getting courses. I have example sites.

I will have to resort to using them if a solution is not found. I am always open to any suggestions here.................................. I don't want free stuff. Just offline access to what I've paid for.

I understand, but you cannot complain about it here, you have to ask Udemy for the access. Sorry to tell you that...

@Blood-PawWerewolf
Copy link

So udemy went full subscription model mode. Not surprised at that move, udemy is no longer a viable option for learning.

@OdinVex
Copy link

OdinVex commented Jul 6, 2021

So udemy went full subscription model mode. Not surprised at that move, udemy is no longer a viable option for learning.

The subscription-model is extremely abusive and anti-consumer, survives on DRM or IP and such. "Do what you want because a pirate is free, you are a pirate!" <-- Motto growing to resound all the world over. ;)

@GerlachM
Copy link

GerlachM commented Jul 6, 2021

Can't you just download lectures with "Video Downloader by Video Octopus" Chrome Extension?

@rijenkii
Copy link

rijenkii commented Jul 7, 2021 via email

@mahdisky
Copy link

mahdisky commented Jul 7, 2021

Does anyone have a solution?

@OdinVex
Copy link

OdinVex commented Jul 7, 2021

Does anyone have a solution?

Sure. Learn to read.

@mahdisky
Copy link

mahdisky commented Jul 7, 2021

@OdinVex
he he thats funny ;

@OdinVex
Copy link

OdinVex commented Jul 7, 2021

@r0oth3x49 I'd recommend one last post from you explaining the situation and then locking the Issue permanently. Might help reduce the number of people not reading and such.

@SRVivek1
Copy link

SRVivek1 commented Jul 8, 2021

I took the latest for udemy-dl and the issue still persists, so is there any solution found yet?

Repository owner locked and limited conversation to collaborators Jul 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
won't fix This will not be worked on
Projects
None yet
Development

No branches or pull requests