X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=videosite%2FBase.pm;h=f6108f636b56fc0bc2fb7b3ff1ad93aab25da65b;hb=1cfec45c0c1cac8fdebca4313c3bcfb3a9f1ab07;hp=bc38468d6eadd51a7c77c0e1eae6f735ad59c4e2;hpb=b45055cfcd716f84ce8fc7a0e5f9dcf3440ae57e;p=videosite.git diff --git a/videosite/Base.pm b/videosite/Base.pm index bc38468..f6108f6 100644 --- a/videosite/Base.pm +++ b/videosite/Base.pm @@ -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;