ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.89k stars 10k forks source link

udemy error #9035

Closed jaan143 closed 8 years ago

jaan143 commented 8 years ago

getting error again in udemy enroled courses

PS C:\Users\vicky> youtube-dl --verbose -u **_@gmail.com -p _* -o '~/MyVideos/%(playlist)s/%(chapter_numbe r)s - %(chapter)s/%(title)s.%(ext)s' https://www.udemy.com/user-interface-ui-drawing-and-design-for-video-games/ [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['--verbose', '-u', 'PRIVATE', '-p', 'PRIVATE', '-o', '~/MyVideos/%(playlist)s/%(chapternumber)s - %(chapter)s/%(title)s.%(ext)s', 'https://www.udemy.com/user-interface-ui-drawing-and-design-for-video-games/'] [debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252 [debug] youtube-dl version 2016.03.27 [debug] Python version 3.4.3 - Windows-8-6.2.9200 [debug] exe versions: none [debug] Proxy map: {} [udemy:course] Downloading login popup [udemy:course] Logging in as *****@gmail.com [udemy:course] user-interface-ui-drawing-and-design-for-video-games: Downloading webpage [udemy:course] user-interface-ui-drawing-and-design-for-video-games: Downloading course JSON ERROR: Unable to download JSON metadata: HTTP Error 404: NOT FOUND (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. File "c:\python34\lib\site-packages\youtube_dl\extractor\common.py", line 366, in _request_webpage return self._downloader.urlopen(url_or_request) File "c:\python34\lib\site-packages\youtube_dl\YoutubeDL.py", line 1934, in urlopen return self._opener.open(req, timeout=self._socket_timeout) File "c:\python34\lib\urllib\request.py", line 469, in open response = meth(req, response) File "c:\python34\lib\urllib\request.py", line 579, in http_response 'http', request, response, code, msg, hdrs) File "c:\python34\lib\urllib\request.py", line 507, in error return self._call_chain(_args) File "c:\python34\lib\urllib\request.py", line 441, in _call_chain result = func(*args) File "c:\python34\lib\urllib\request.py", line 587, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp)

PS C:\Users\vicky>

LionelFernandez commented 8 years ago

This happens when you try downloading a course. However each video can be downloaded still. This was working like 5 hours ago. That means Udemy has made some modifications in its website and or JSON file or its location

jaan143 commented 8 years ago

so now you will update udemy file ? and yes it was working fine few hours ago but not right now

ahiyo commented 8 years ago

It seems that there is an issue when the lecture is not a video (in my case a html page). Despite that it's working great.

[download] Downloading video 6 of 289 [udemy] 4566028: Downloading webpage [udemy] 4566028: Downloading lecture JSON ERROR: Lecture 4566028 is not a video Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/youtube_dl/YoutubeDL.py", line 669, in extract_info ie_result = ie.extract(url) File "/usr/local/lib/python3.4/dist-packages/youtube_dl/extractor/common.py", line 321, in extract return self._real_extract(url) File "/usr/local/lib/python3.4/dist-packages/youtube_dl/extractor/udemy.py", line 200, in _real_extract 'Lecture %s is not a video' % lecture_id, expected=True) youtube_dl.utils.ExtractorError: Lecture 4566028 is not a video

saravanashines commented 8 years ago

So whats the final solution for this ? If this is a duplicate issue, still no solution provided.

dstftw commented 8 years ago

Wait for next release.

saravanashines commented 8 years ago

Oh..you should have mentioned that in this issue itself..as the issue was closed, i submitted one.. Just add a note saying it will be fixed in next release or Release version number.. :)

Thanks