]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/commit
Fixed a bug in the Youtube class' parsing of the "t" parameter.
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 6 Sep 2008 03:44:59 +0000 (23:44 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sat, 6 Sep 2008 03:44:59 +0000 (23:44 -0400)
commit2c835ed7a247ed5639277bc9674b848722ad998d
tree42f6aac745cb4336d1f6d86772a6675684ab6136
parentc062e7dbc430c3a609aa677eece1ab8afec7a2ef
Fixed a bug in the Youtube class' parsing of the "t" parameter.

Modified the "t" parsing regex to catch non-alphanumeric characters, which from experience I now know are possible.
Added a test/fixture to expose the bug.
The whatever-dl executable now outputs "Fetching #{video_url}" before actually fetching the file.
bin/whatever-dl
src/websites/youtube.rb
test/fixtures/youtube/K9iDMcmm0tE.html [new file with mode: 0644]
test/youtube_test.rb