From 1f3b2b85a1ea6a1b523469bf4cb0a8089ab4f84d Mon Sep 17 00:00:00 2001 From: trizen Date: Tue, 15 Sep 2020 22:31:01 +0300 Subject: - Added instance-caching for `_get_video_info()`, `_extract_from_ytdl()` and `_extract_from_invidious()`. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- lib/WWW/FairViewer/Videos.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/WWW/FairViewer') diff --git a/lib/WWW/FairViewer/Videos.pm b/lib/WWW/FairViewer/Videos.pm index b29d1f7..da6af0b 100644 --- a/lib/WWW/FairViewer/Videos.pm +++ b/lib/WWW/FairViewer/Videos.pm @@ -225,6 +225,7 @@ sub video_details { } @{$video->{thumbnail}{thumbnails}} ], + liveNow => $video->{isLiveContent}, description => $video->{shortDescription}, lengthSeconds => $video->{lengthSeconds}, -- cgit v1.2.3