diff options
author | Corbin Simpson <MostAwesomeDude@gmail.com> | 2013-03-05 00:04:50 -0800 |
---|---|---|
committer | Corbin Simpson <MostAwesomeDude@gmail.com> | 2013-03-05 00:04:50 -0800 |
commit | 63e0a2eba9adf5fad11b0d2bed76b6ffd870dce9 (patch) | |
tree | cd1c16702748faab4f62157ee36d1af976e6492b | |
parent | 7c20f3e3757e3651d8fbb3bc1868763f36faa239 (diff) | |
download | get-flash-videos-63e0a2eba9adf5fad11b0d2bed76b6ffd870dce9.tar.gz |
Fix reference type-checking to check for HASH instead of ARRAY.
I'm relatively sure that this is what was meant.
Doesn't fix any video downloaders, but gets me from a bogus error to a real
error on Mtvnservices. (Why is Mtvnservices always busted?) :c
-rwxr-xr-x | get_flash_videos | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/get_flash_videos b/get_flash_videos index d98e56b..af05d47 100755 --- a/get_flash_videos +++ b/get_flash_videos @@ -341,7 +341,7 @@ sub download { } my $suggested_filename = $suggested_fnames[-1]; - if (ref($actual_url) eq 'ARRAY') { + if (ref($actual_url) eq 'HASH') { $suggested_filename ||= $actual_url->{flv}; } |