rg3/youtube-dl — pull request #486 by Tailszefox (2012-10-22 16:38:55+00:00)
Title: Added duration for YouTube videos

This should fix 474, at least for YouTube videos. It adds a "duration" field in the video infos, reflecting the length of the video in seconds, which can then be written to a file using --write-info-json for example.