diff options
author | trizen <trizen@protonmail.com> | 2020-06-05 21:17:42 +0300 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-06-06 21:52:47 -0500 |
commit | 754e30726f3af7d28a8b6e505fc44754f3b6f353 (patch) | |
tree | 21a8849803b733c0c69db6c48546f81af679f0f7 /lib/WWW/FairViewer/Utils.pm | |
parent | 99ccfc9f20f89f0034da5647a3b8abfb5fa5387d (diff) | |
download | fair-viewer-754e30726f3af7d28a8b6e505fc44754f3b6f353.tar.lz fair-viewer-754e30726f3af7d28a8b6e505fc44754f3b6f353.tar.xz fair-viewer-754e30726f3af7d28a8b6e505fc44754f3b6f353.zip |
- Added basic support for related videos. (fixes https://github.com/trizen/straw-viewer/issues/15)
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 <heckyel@hyperbola.info>
Diffstat (limited to 'lib/WWW/FairViewer/Utils.pm')
-rw-r--r-- | lib/WWW/FairViewer/Utils.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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; |