This script is for Slackware 14.2 only and may be outdated.

SlackBuilds Repository

14.2 > Multimedia > youtube-viewer (3.7.4)

youtube-viewer (browse YouTube videos from a terminal or GTK UI)

Youtube Viewer is a dedicated application for searching, viewing, and
downloading Youtube videos, using wget for downloading and MPlayer for
viewing. It has been written in Perl and plays videos from Youtube at
the best quality available without using a flash player.

*********
Note: Google has revoked the API key formerly used by youtube-viewer. To
use this, you'll have to create a Google account and register for an API
key. See /usr/doc/youtube-viewer-$VERSION/README.md for instructions.
See https://github.com/trizen/youtube-viewer/issues/308 for more
information.

If you don't like this restriction, try using straw-viewer instead.

Further note: I (B. Watson) am no longer updating this SlackBuild
because I don't care to register for an API key, so I can't test
it. If you use this and want to take over, please let me know (or
mention it on the mailing list).

This build will be REMOVED from the repository either in March 2021, or
whenever Slackware 15.0 releases (whichever comes first) unless someone
takes over as maintainer.
*********

Optional dependencies:

perl-gtk2, perl-File-ShareDir - for gtk2-youtube-viewer.
perl-Gtk3, perl-File-ShareDir, perl-List-MoreUtils - for gtk3-youtube-viewer.
perl-Text-CharWidth, perl-Unicode-LineBreak - for better formatting
in the terminal.
perl-Term-ReadLine-Gnu - for command editing/history in the terminal.
youtube-dl [2] - if this is present, youtube-viewer will use it to detect
available formats for the video.

Counting optional ones, youtube-viewer has over 40 dependencies. To make
life easier, there's now a "youtube-viewer.sqf" queue file included with
this build, which includes everything listed above.

[1] A small caveat about youtube-dl: youtube-viewer works without it,
though occasionally it'll choose a lower quality than is available
for some videos. However, if youtube-dl is present but outdated,
youtube-viewer will fail to play videos at all! If you suspect this,
remove youtube-dl and try without it.

This build always includes the command-line client (youtube-viewer). For
the GTK client (gtk-youtube-viewer), install perl-gtk2 and
perl-File-ShareDir before running this script. If you have them installed
but don't want gtk-youtube-viewer, you can set GTK=no in the script's
environment.

To force gtk-youtube-viewer to use your preferred terminal for downloading
with wget and watching in a terminal, set TERMINAL in the script's
environment (e.g. TERMINAL="xterm" or TERMINAL="urxvt").

When upgrading to 3.2.4, I had to remove my old config file to get the new
gtk-youtube-viewer to work correctly. If you have issues after an upgrade:

rm -f ~/.config/youtube-viewer/gtk-youtube-viewer.conf

This requires: perl-JSON, perl-data-dump, perl-lwp-useragent-cached, perl-JSON-XS, perl-Module-Build, perl-LWP-Protocol-https

Maintained by: orphaned - no maintainer
Keywords: youtube,video,gtk-youtube-viewer
ChangeLog: youtube-viewer

Homepage:
https://github.com/trizen/youtube-viewer/

Source Downloads:
youtube-viewer-3.7.4.tar.gz (17e183cdccfe30c04aed7263d26654a0)

Download SlackBuild:
youtube-viewer.tar.gz
youtube-viewer.tar.gz.asc (FAQ)

(the SlackBuild does not include the source)

Validated for Slackware 14.2

See our HOWTO for instructions on how to use the contents of this repository.

Access to the repository is available via:
ftp git cgit http rsync

© 2006-2024 SlackBuilds.org Project. All rights reserved.
Slackware® is a registered trademark of Patrick Volkerding
Linux® is a registered trademark of Linus Torvalds