Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

trizen/straw-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

** Deprecated in favor of: pipe-viewer. (info)

straw-viewer

A lightweight application (fork of youtube-viewer) for searching and playing videos from YouTube, using the API of invidio.us.

straw-viewer

  • command-line interface to YouTube.

straw-viewer

gtk-straw-viewer

  • GTK+ interface to YouTube.

gtk-straw-viewer

STATUS

The project is in its early stages of development and some features are not implemented yet.

AVAILABILITY

VIDEO REVIEWS

TRY

For trying the latest commit of straw-viewer, without installing it, execute the following commands:

    cd /tmp
    wget https://github.com/trizen/straw-viewer/archive/master.zip -O straw-viewer-master.zip
    unzip -n straw-viewer-master.zip
    cd straw-viewer-master/bin
    ./straw-viewer

INSTALLATION

To install straw-viewer, run:

    perl Build.PL
    sudo ./Build installdeps
    sudo ./Build install

To install gtk-straw-viewer along with straw-viewer, run:

    perl Build.PL --gtk
    sudo ./Build installdeps
    sudo ./Build install

DEPENDENCIES

For straw-viewer:

For gtk-straw-viewer:

Build dependencies:

Optional dependencies:

PACKAGING

To package this application, run the following commands:

    perl Build.PL --destdir "/my/package/path" --installdirs vendor [--gtk]
    ./Build test
    ./Build install --install_path script=/usr/bin

INVIDIOUS INSTANCES

Sometimes, the default instance, invidious.snopyta.org, may fail to work properly. When this happens, we can change the API host to some other instance of invidious, such as invidious.tube:

    straw-viewer --api=invidious.tube

To make the change permanent, set in the configuration file:

    api_host => "invidious.tube",

Alternatively, the following will automatically pick a random invidious instance everytime the program is started:

    api_host => "auto",

The available instances are listed at: https://api.invidious.io/

PIPE-VIEWER

pipe-viewer is an experimental fork of straw-viewer with the goal of parsing the YouTube website directly, and thus it may be a faster and more reliable alternative.

SUPPORT AND DOCUMENTATION

After installing, you can find documentation with the following commands:

man straw-viewer
perldoc WWW::StrawViewer

LICENSE AND COPYRIGHT

Copyright (C) 2012-2021 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 http://dev.perl.org/licenses/ for more information.