Base, YouTube: add a function to decode URL query strings and make the Youtube grabbe...
[videosite.git] / videosite / Base.pm
index 577eb52..0f2cf2d 100644 (file)
@@ -187,4 +187,10 @@ sub decode_hexurl {
     return $d;
 }
 
+sub decode_querystring {
+    my $self = shift;
+
+    return { map { split /=/, $_, 2; } split /&/, shift };
+}
+
 1;