aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2013-03-05 00:04:50 -0800
committerCorbin Simpson <MostAwesomeDude@gmail.com>2013-03-05 00:04:50 -0800
commit63e0a2eba9adf5fad11b0d2bed76b6ffd870dce9 (patch)
treecd1c16702748faab4f62157ee36d1af976e6492b
parent7c20f3e3757e3651d8fbb3bc1868763f36faa239 (diff)
downloadget-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-xget_flash_videos2
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};
}