From 0d69c7e8a6edce5e2f345fb43c56af849491eb91 Mon Sep 17 00:00:00 2001 From: trizen Date: Mon, 24 Aug 2020 13:19:48 +0300 Subject: - Fixed the support for closed-captions for some videos. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also fixes the JSON warning ", or } expected while parsing object/hash". (closes https://github.com/trizen/fair-viewer/issues/21) Signed-off-by: Jesús --- lib/WWW/FairViewer.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/WWW') diff --git a/lib/WWW/FairViewer.pm b/lib/WWW/FairViewer.pm index 037f469..ffd8c93 100644 --- a/lib/WWW/FairViewer.pm +++ b/lib/WWW/FairViewer.pm @@ -889,8 +889,7 @@ sub get_streaming_urls { my @caption_urls; if (exists $info{player_response}) { - require URI::Escape; - my $captions_json = URI::Escape::uri_unescape($info{player_response}); + my $captions_json = $info{player_response}; # don't run uri_unescape() on this my $caption_data = $self->parse_json_string($captions_json); if (eval { ref($caption_data->{captions}{playerCaptionsTracklistRenderer}{captionTracks}) eq 'ARRAY' }) { -- cgit v1.2.3