GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
WWW::YoutubeViewer::Utils(3) User Contributed Perl Documentation WWW::YoutubeViewer::Utils(3)

WWW::YoutubeViewer::Utils - Various utils.

    use WWW::YoutubeViewer::Utils;

    my $yv_utils = WWW::YoutubeViewer::Utils->new(%opts);

    print $yv_utils->format_time(3600);

Options:
thousand_separator => ""
Character used as thousand separator.
months => []
Month names for format_date()
youtube_url_format => ""
A youtube URL format for sprintf(format, videoID).

Returns the extension format from a given type.

From a string like 'video/webm;+codecs="vp9"', it returns 'webm'.

Returns time from seconds.

Return time (01:20:10) 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 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 thumbnail URL.

Trizen, "<echo dHJpemVuQHByb3Rvbm1haWwuY29tCg== | base64 -d>"

You can find documentation for this module with the perldoc command.

    perldoc WWW::YoutubeViewer::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.

2022-06-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.