iv-one / coursera-downloader

Coursera Videos Downloader Chrome Plugin
111 stars 84 forks source link

Add one-indexed values for video names #8

Closed SyntaxBlitz closed 10 years ago

SyntaxBlitz commented 10 years ago

This allows users to create video titles as they would have been created if you had just normally downloaded them, as was requested in issue #3.

It adds two new variables for interpolation, sectionNumber and lectureNumber. These values are equivalent to their corresponding indices except that they're incremented by one.

The original video title with this commit would be expressed like this:

#{sectionNumber} - #{lectureNumber} - #{lecture}

This is most suitable alongside my other pull request, #7, because without specifying a subdirectory for the downloaded files, it will be hard to distinguish between different courses in video files downloaded to the user's downloads folder.

iv-one commented 10 years ago

Thanks for your contribution, @SyntaxBlitz ! I've merged your changes and will publish it shortly.