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
132.26k stars 10.03k forks source link

Lynda.com: Add support for extraction of "release-date" & "update-date" html elements #11869

Open abc9987 opened 7 years ago

abc9987 commented 7 years ago

[x] I've verified and I assure that I'm running youtube-dl 2017.01.28 [x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

Hi there,

at the moment, youtube-dl is not supporting the output template "release_date" for Lynda.com courses.

It would be very nice if someone could add a support for extraction of a Lynda.com's course release/update date. The html element ids are "update-date" and "release-date".

The output template should then add the newest of those two dates to the folder/path name in descending order. E.g. for https://www.lynda.com/Java-tutorials/Up-Running-Java-Applications/435790-2.html with above ids (Updated: 8/1/2016, Released: 2/22/2016) and the usage of the following commands: youtube-dl --output "E:\Downloads\%%(playlist)s (%%(release_date)s)\ => E:\Downloads\Up and Running with Java Applications (2016-8-1)\

Best regards

mednasserallah commented 7 years ago

I'm looking for that too !!

duracotton commented 7 years ago

same here..editing the lynda.py wouldn't be the big deal, but I don't know where to "insert" the upload-date/update-date. The return object of "self.playlist_result()" used here in the code encapsulates only the course-videos, course-id, course-title and course-description (which isn't working):

The upload date is only used in _parse_smil()