]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/commit
Made the output filename the responsibility of the website subclass.
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 7 Sep 2008 05:51:52 +0000 (01:51 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 7 Sep 2008 05:51:52 +0000 (01:51 -0400)
commit83e06f83d8274cb32a406739839d56e759664b09
treeb81e486c925fa99e3893c5639faa56cefd97484c
parent2c835ed7a247ed5639277bc9674b848722ad998d
Made the output filename the responsibility of the website subclass.

Added a factory method to the website class which creates the appropriate subclass based on the URL given to it.
Added a get_video_filename method to the website class.
Made two Website methods abstract via NotImplementedError, get_video_url and owns_url?.
Created a default implementation of get_video_filename in the Website class.
Made the site URL member data of the Website class.
Fixed a bug in the URL handling for Youtube.
Added output stating the filename for the download.
Replaced all code in the classes/tests to accommodate the other changes.
22 files changed:
bin/whatever-dl
doc/todo.txt
src/uri_utilities.rb
src/website.rb
src/websites/howcast.rb
src/websites/infoq.rb
src/websites/redtube.rb
src/websites/veoh.rb
src/websites/vimeo.rb
src/websites/youporn.rb
src/websites/youtube.rb
test/fixtures/veoh/details_data-v15795090Z6mZAbSq.xml [new file with mode: 0644]
test/infoq_remote_test.rb
test/infoq_test.rb
test/redtube_test.rb
test/uri_utilities_test.rb
test/veoh_test.rb
test/vimeo_test.rb
test/website_test.rb
test/youporn_remote_test.rb
test/youporn_test.rb
test/youtube_test.rb