aboutsummaryrefslogtreecommitdiffstats
path: root/Build.PL
diff options
context:
space:
mode:
authortrizen <trizen@protonmail.com>2020-09-15 22:31:01 +0300
committerJesús <heckyel@hyperbola.info>2020-09-28 21:44:05 -0500
commit1f3b2b85a1ea6a1b523469bf4cb0a8089ab4f84d (patch)
treedf354eb5915803c9bc1487613518c2404bf96b98 /Build.PL
parent192dd6d100f070a95be6868aa7ab7c3992859c1a (diff)
downloadfair-viewer-1f3b2b85a1ea6a1b523469bf4cb0a8089ab4f84d.tar.lz
fair-viewer-1f3b2b85a1ea6a1b523469bf4cb0a8089ab4f84d.tar.xz
fair-viewer-1f3b2b85a1ea6a1b523469bf4cb0a8089ab4f84d.zip
- Added instance-caching for `_get_video_info()`, `_extract_from_ytdl()` and `_extract_from_invidious()`.
Too many requests to `_get_video_info()` and/or `hypervideo` may lead to a "429 - Too Many Requests" issue. Caching these functions may help to prevent this a little bit. Also playing the same video twice, the second time it will load much faster, since `_get_video_info()` is cached. Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'Build.PL')
-rwxr-xr-xBuild.PL1
1 files changed, 1 insertions, 0 deletions
diff --git a/Build.PL b/Build.PL
index a77b075..d60b4e8 100755
--- a/Build.PL
+++ b/Build.PL
@@ -41,6 +41,7 @@ my $builder = Module::Build->new(
'HTTP::Request' => 0,
'JSON' => 0,
'Encode' => 0,
+ 'Memoize' => 0,
'MIME::Base64' => 0,
'List::Util' => 0,
'LWP::UserAgent' => 0,