Automatically add cookies gathered during grabbing to the metadata
[videosite.git] / videosite / Base.pm
index bc38468..f6108f6 100644 (file)
@@ -221,9 +221,17 @@ sub ua {
         }
     }
 
+    $self->{_CACHED_UA} = $ua;
+
     return $ua;
 }
 
+sub _cached_ua {
+    my $self = shift;
+
+    return $self->{_CACHED_UA};
+}
+
 sub simple_get {
     my $self = shift;
     my $url = shift;