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::GetCaption(3) User Contributed Perl Documentation WWW::YoutubeViewer::GetCaption(3)

WWW::YoutubeViewer::GetCaption - Save the YouTube closed captions as .srt files for a videoID.

    use WWW::YoutubeViewer::GetCaption;

    my $yv_cap = WWW::YoutubeViewer::GetCaption->new(%opts);
    my $file = $yv_cap->save_caption($videoID);

Options:
captions => []
The captions data.

 [
  # ...
    {
      baseUrl => "https://...",
      isTranslatable => '...',
      languageCode => "ru",
      name => { simpleText => "Russian" },
      vssId => ".ru",
    },
  # ...
 ]
    
captions_dir => "."
Where to save the closed captions.
languages => [qw(en es ro jp)]
Preferred languages. First found is saved and returned.

Find a caption data, based on the preferred languages.

Convert a list of seconds to .srt times.

Convert the XML data to SubRip format.

Save the caption in a .srt file and return its file path.

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

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

    perldoc WWW::YoutubeViewer::GetCaption

Copyright 2012-2015 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.