WWW::PipeViewer::Utils - Various utils. |
WWW::PipeViewer::Utils - Various utils.
use WWW::PipeViewer::Utils;
my $yv_utils = WWW::PipeViewer::Utils->new(%opts);
print $yv_utils->format_time(3600);
Options:
Character used as thousand separator.
Month names for format_date()
A video YouTube URL format for sprintf(format, videoID).
A channel YouTube URL format for sprintf(format, channelID).
A playlist YouTube URL format for sprintf(format, playlistID).
Returns the extension format from a given type.
From a string like 'video/webm;+codecs="vp9"', it returns 'webm'.
Returns time from seconds.
Return seconds from duration (PT1H20M10S).
Return string "04 May 2010" from "2010-05-04T00:25:55.000Z"
Return the (approximated) age for a given date of the form "2010-05-04T00:25:55.000Z".
Returns the entries for a given result.
Returns true if a given result has entries.
Replace file-unsafe characters and trim spaces.
Formats a text with information from streaming and video info.
The structure of %opt
is:
(
streaming => HASH,
info => HASH,
text => STRING,
escape => BOOL,
fat32safe => BOOL,
)
Return the number with thousand separators.
Get videoID.
Get description.
Get title.
Get smallest thumbnail of at least ${xsize}x${ysize}.
Trizen, <echo dHJpemVuQHByb3Rvbm1haWwuY29tCg== | base64 -d>
You can find documentation for this module with the perldoc command.
perldoc WWW::PipeViewer::Utils
Copyright 2012-2020 Trizen.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See https://dev.perl.org/licenses/ for more information.
WWW::PipeViewer::Utils - Various utils. |