Open vikiaiteam opened 3 years ago
youtube-dl --playlist-items 1,2,3 https://learning.oreilly.com/videos/cisco-ccna-200-301/9781789130089/
Same here. Downloading playlist doesn't obey the original sequence, %(playlist_index)
is also randomized.
Which means --playlist-start
doesn't work anymore on learning.oreilly.com
.
Adding course_json['chapters'] = sorted(course_json['chapters'])
or course_json['chapters'].sort()
right before line 254 fixes the issue for me.
def _real_extract(self, url):
course_id = self._match_id(url)
course_json = self._download_json(
'%s/book/%s/?override_format=%s' % (self._API_BASE, course_id, self._API_FORMAT),
course_id, 'Downloading course JSON')
if 'chapters' not in course_json:
raise ExtractorError(
'No chapters found for course %s' % course_id, expected=True)
course_json['chapters'].sort()
entries = [
self.url_result(chapter, SafariApiIE.ie_key())
for chapter in course_json['chapters']]
course_title = course_json['title']
return self.playlist_result(entries, course_id, course_title)
Checklist
Verbose log
Description
WRITE DESCRIPTION HERE