xaicron / p5-www-youtube-download

YouTube video download interface.
http://blog.livedoor.jp/xaicron/
Other
38 stars 28 forks source link

add parse_head => 0 option to ua #5

Closed skaji closed 12 years ago

skaji commented 12 years ago

Hello!

It seems that youtube-download script fails with a message "failed to extract JSON data".

The reason of failure is that youtube page contains

<meta name="twitter:card" ...>

and HTTP::Headers module croaks "Illegal field name" there.

Perhaps WWW::YouTube::Download module do not need to parse headers, I added parse_head => 0 option to LWP::UserAgent.

Thank you.

xaicron commented 12 years ago

it's great works! Thanks :)