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 playlist download stopped when lecture is a html page #9060

Closed ahiyo closed 8 years ago

ahiyo commented 8 years ago

Please follow the guide below


Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.04.01. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.


The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

$ youtube-dl -u user@mail.com -p private --verbose -o '~/Videos/%(playlist)s/%(chapter_number)s - %(chapter)s/%(playlist_index)s-%(title)s.%(ext)s' https://www.udemy.com/the-complete-web-developer-course-2
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-u', 'PRIVATE', '-p', 'PRIVATE', '--verbose', '-o', '~/Videos/%(playlist)s/%(chapter_number)s - %(chapter)s/%(playlist_index)s-%(title)s.%(ext)s', 'https://www.udemy.com/the-complete-web-developer-course-2']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.04.01
[debug] Python version 3.4.3 - Linux-3.16.0-38-generic-x86_64-with-LinuxMint-17.3-rosa
[debug] exe versions: avconv 11.3-6, avprobe 11.3-6, ffmpeg N-78590-g5590ab4, ffprobe N-78590-g5590ab4
[debug] Proxy map: {}
[udemy:course] Downloading login popup
[udemy:course] Logging in as Private
[udemy:course] the-complete-web-developer-course-2: Downloading webpage
[udemy:course] 764164: Downloading course curriculum
[download] Downloading playlist: The Complete Web Developer Course 2.0
[udemy:course] playlist The Complete Web Developer Course 2.0: Collected 289 video ids (downloading 289 of them)
[download] Downloading video 1 of 289
[udemy] Downloading login popup
[udemy] 4720352: Downloading webpage
[udemy] 4720352: Downloading lecture JSON
[debug] Invoking downloader on 'https://udemy-assets-on-demand.udemy.com/2016-03-11_11-48-16-private'
.....CUT.....
[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 323, in extract
    return self._real_extract(url)
  File "/usr/local/lib/python3.4/dist-packages/youtube_dl/extractor/udemy.py", line 199, in _real_extract
    'Lecture %s is not a video' % lecture_id, expected=True)
youtube_dl.utils.ExtractorError: Lecture 4566028 is not a video

Lecture 6 is a html page. Normally those are skipped. Ideally it would be great to save it as a pdf (maby out of the scope of this development.) I remain available for more log information if necessary.

dstftw commented 8 years ago

This issue is already fixed and fix will be incorporated in the next version of youtube-dl.