From 754e30726f3af7d28a8b6e505fc44754f3b6f353 Mon Sep 17 00:00:00 2001 From: trizen Date: Fri, 5 Jun 2020 21:17:42 +0300 Subject: - Added basic support for related videos. (fixes https://github.com/trizen/straw-viewer/issues/15) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Example: fair-viewer --related [video-id / URL] This also implements support for `--autoplay`, which is based on related videos. Thanks to @aearil for reporting this issue. Signed-off-by: Jesús --- lib/WWW/FairViewer/Utils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/WWW/FairViewer/Utils.pm') diff --git a/lib/WWW/FairViewer/Utils.pm b/lib/WWW/FairViewer/Utils.pm index 01dde3b..e50bf3f 100644 --- a/lib/WWW/FairViewer/Utils.pm +++ b/lib/WWW/FairViewer/Utils.pm @@ -453,7 +453,7 @@ Get description. sub get_description { my ($self, $info) = @_; - my $desc = $info->{descriptionHtml} // ''; + my $desc = $info->{descriptionHtml} // $info->{description} // ''; require URI::Escape; require HTML::Entities; -- cgit v1.2.3