gtk-youtube-viewer (for lots of pups)

Browsers, email, chat, etc.
Message
Author
User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#341 Post by fredx181 »

Hi fabrice_035,

I assume you tried the pet from my previous post.
It's not made for Tahr, only for Bionic.
(perl version is different)

EDIT: I will try to make a package for Tahr also in the next days.

Fred

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#342 Post by fredx181 »

*** Gtk-youtube-viewer v3.5 for TahrPup 32-bit ***
(tested on TahrPup 6.0.6 and X-Tahr)
====================================================
EDIT 2018-10-21 Download link replaced with fixed version:
Added HTTP::Headers perl modules, this should fix the problem not remembering authentication when logged in
====================================================

EDIT: Download here newest version 3.5.3 :
http://murga-linux.com/puppy/viewtopic. ... 59#1009159

youtube-viewer-3.5.1-tahr_i386.pet:
https://dl.dropboxusercontent.com/s/iea ... 6.pet?dl=1

Gtk-youtube-viewer works best with mpv and youtube-dl.
(many video's won't play without youtube-dl installed)

Install mpv-20150814-git-i686-precise.pet (works on Tahr)
https://dl.dropboxusercontent.com/s/63i ... e.pet?dl=1
Got it from here, thanks jist !
http://www.murga-linux.com/puppy/viewto ... 332#859332

Install youtube-dl:

Code: Select all

curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
chmod a+rx /usr/local/bin/youtube-dl
EDIT:
There may be a problem with rxvt (needed for e.g. "Download video")
Change in Preferences to xterm and add -hold :

Code: Select all

  terminal                            => "/usr/bin/xterm",
  terminal_exec                       => "-hold -e '%s'",
Fred
Last edited by fredx181 on Wed 07 Nov 2018, 18:01, edited 4 times in total.

roadkill13
Posts: 154
Joined: Wed 10 Aug 2011, 21:41
Location: United States
Contact:

#343 Post by roadkill13 »

I installed this on UpupBB 18.0.5 +14 yesterday. It worked wonderfully at that time.

I started the app today and it would not work. I started the program in lxterm. Initially there were no messages in the terminal window. After attempting to search subscriptions (I am logged in) this message displayed in the terminal window:
Can't locate HTTP/Headers/Util.pm in @INC (you may need to install the HTTP::Headers::Util module) (@INC contains: /etc/perl /usr/local/lib/i386-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/i386-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/i386-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/i386-linux-gnu/perl-base) at /usr/share/perl5/LWP/UserAgent.pm line 375.
No videos were displayed in the viewer interface. I am not able to search for videos by channel or by user either.
Attachments
Screenshot.png
(30.37 KiB) Downloaded 587 times

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#344 Post by Smithy »

Hi Fred, if you get the chance to make a non-cde pet for Artful that would be great. That MPV for precise works in Artful.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#345 Post by fredx181 »

roadkill13 wrote:I installed this on UpupBB 18.0.5 +14 yesterday. It worked wonderfully at that time.

I started the app today and it would not work. I started the program in lxterm. Initially there were no messages in the terminal window. After attempting to search subscriptions (I am logged in) this message displayed in the terminal window:
Can't locate HTTP/Headers/Util.pm in @INC (you may need to install the HTTP::Headers::Util module) (@INC contains: /etc/perl /usr/local/lib/i386-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/i386-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/i386-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/i386-linux-gnu/perl-base) at /usr/share/perl5/LWP/UserAgent.pm line 375.
No videos were displayed in the viewer interface. I am not able to search for videos by channel or by user either.
Yes, not sure, but apparently because of the missing "HTTP::Headers" modules the login authentication isn't remembered, I added these, so should be fixed now, new download links here:
Bionic:
http://murga-linux.com/puppy/viewtopic. ... 55#1007755
Tahr:
http://murga-linux.com/puppy/viewtopic. ... 18#1007818
And thanks for reporting !

@Smithy,
Hi Fred, if you get the chance to make a non-cde pet for Artful that would be great. That MPV for precise works in Artful.
I think I can do that, probably tonight or tomorrow.

Fred

roadkill13
Posts: 154
Joined: Wed 10 Aug 2011, 21:41
Location: United States
Contact:

#346 Post by roadkill13 »

Fred wrote:
Yes, not sure, but apparently because of the missing "HTTP::Headers" modules the login authentication isn't remembered, I added these, so should be fixed now, new download links here:
Bionic:
http://murga-linux.com/puppy/viewtopic. ... 55#1007755
One minor issue to report with the 3.5.2 version (fixed). Package installer reported that the name inside the package is different than the name outside the package and refused to install. I resolved this by renaming the package by removing -bionic from the name of the pet package so it reads "youtube-viewer-3.5.2_i386.pet".

Once installed it works just fine. Thank you very much for the fix.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#347 Post by fredx181 »

roadkill13 wrote:Package installer reported that the name inside the package is different than the name outside the package and refused to install. I resolved this by renaming the package by removing -bionic from the name of the pet package so it reads "youtube-viewer-3.5.2_i386.pet".
Ah, thanks, good to know, just before uploading I did rename the pets.
Again replaced download links above now (removed "-bionic" from name).

Fred

roadkill13
Posts: 154
Joined: Wed 10 Aug 2011, 21:41
Location: United States
Contact:

#348 Post by roadkill13 »

Thanks Fred.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#349 Post by fredx181 »

*** Gtk-youtube-viewer for Artful and Xenial ***

EDIT: Download here newest version 3.5.3:
http://murga-linux.com/puppy/viewtopic. ... 59#1009159

Artfulpup pet package 32-bit:
https://dl.dropboxusercontent.com/s/yj1 ... 6.pet?dl=1

There's no special need to install mpv in Artfulpup, the mplayer included seems to work fine.
But if you do want to use mpv, go in Preferences and change to mpv, so looks like:

Code: Select all

  video_player_selected               => "mpv",
Xenialpup pet package 32-bit:
https://dl.dropboxusercontent.com/s/8px ... 6.pet?dl=1

There may be a problem with rxvt (needed for e.g. "Download video")
Change in Preferences to xterm and add -hold :

Code: Select all

  terminal                            => "/usr/bin/xterm",
  terminal_exec                       => "-hold -e '%s'",
........................................................

Install youtube-dl (otherwise many video's won't play), from terminal:

Code: Select all

curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
chmod a+rx /usr/local/bin/youtube-dl
Fred
Last edited by fredx181 on Mon 05 Nov 2018, 20:57, edited 2 times in total.

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#350 Post by Smithy »

Thanks for doing these latest Fred.
If it needs updating from time to time, is there an update command that can be entered for them like before ./youtube-dl.cde -U

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#351 Post by fredx181 »

Smithy wrote:Thanks for doing these latest Fred.
If it needs updating from time to time, is there an update command that can be entered for them like before ./youtube-dl.cde -U
For to update gtk-youtube-viewer, it needs to be compiled from newer version at github:
https://github.com/trizen/youtube-viewer
But that's probably rather easy because the perl dependencies are already installed (from the installed pet).
(unless the changes are so major that it needs other perl modules)
EDIT: Required to install from PPM: libmodule-build-perl and cmake (at least)

Updating youtube-dl you can do from time to time by:

Code: Select all

youtube-dl -U
Fred

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#352 Post by Smithy »

Good info, thanks Fred.

Here's some svg pixmap icons for the app if they are useful to you.
Just two missing, Playlists and Like, oh and a submenu Video icon somewhere, couldn't find them in the massive faenza set.

https://www.dropbox.com/s/y0i4o3wqoh5gg ... s.tar?dl=1

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#353 Post by fredx181 »

Hi Smithy, thanks for the svg icons.
If you rename or link:
emblem-ubuntuone-synchronized.svg to emblem-default.svg , and
x-office-document.svg to emblem-documents.svg
Then I think all icons should show.

Fred

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#354 Post by Smithy »

Great, just one left missing, author/playlists?

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#355 Post by fredx181 »

Smithy wrote:Great, just one left missing, author/playlists?
For me author/playlists shows, with the icon emblem-documents.svg
(note that it's ending with s , documents)

Fred

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#356 Post by Smithy »

Thanks Fred, your attention to detail is outstanding. What a difference an S makes :)

User avatar
icosahedron
Posts: 119
Joined: Mon 28 Nov 2011, 11:58
Location: UK

#357 Post by icosahedron »

Thanks a million for this, Fred. I’ve just stumbled across this thread while I was looking for a replacement browser - because You Tube insists (yet again) that my outdated browser can’t read the video formats (even though it was doing so happily at the weekend...

I’ve downloaded the universal viewer from your link of 28th March 2018 and it runs on my Lucid 525 OK.

However, only a few of the videos seem to play. Some videos run, most don’t. Nor do the videos download. Only the ones that play will download.

Reading this thread in more detail, this problem seems to be related to the ‘youtube-dl’ whatever that is. I’m not a programmer, I just install a Pet and run it. If it needs fixing, I’m outta my league unless I can get line by line instructions of what to do.

Can you tell me in words of one syllable how to fix the youtube viewer, or point me to one that will work for me out of the box?

Thanks.
Computers: - I just ride 'em, I dunno what makes 'em work.
Console/Terminal? What's that?
I visit the Internet to OBTAIN information, not to PROVIDE it! (Increase Internet Privacy)

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#358 Post by fredx181 »

Hi icosahedron,
I’ve downloaded the universal viewer from your link of 28th March 2018 and it runs on my Lucid 525 OK.

However, only a few of the videos seem to play. Some videos run, most don’t. Nor do the videos download. Only the ones that play will download.
Yes, the one from 28th March was first attempt and improved later.
Better try this one, see here (works also on Lucid):
http://murga-linux.com/puppy/viewtopic. ... 640#991640

youtube-dl is sort of helper program for gtk-youtube-viewer.
Without it (or not updated from time to time) many video's won't play.
To update youtube-dl, run from terminal in the "yt-viewer-3.1.5_youtube-dl" directory:

Code: Select all

./youtube-dl.cde -U
Btw, I made new cde-package with newest version of gtk-youtube-viewer (3.5), see next post.
(works also on Lucid)

Fred

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#359 Post by fredx181 »

*** gtk-youtube-viewer v3.5 (latest) cde-package ***

EDIT 2018-10-31, re-uploaded, fixed some mistakes, download link below replaced.
EDIT: again made some fixes, download link below replaced.
EDIT: 2018-11-01 some video's (from categories) didn't play, fixed,download link below replaced (with date appended)
EDIT: Problems were caused by using Xarchiver, resulting in broken symlinks, download link below replaced (again :wink: )
Size is a bit more than previously shared yt-viewer cde-packages.
Has some improvements, e.g. all icons show, looks a little better (using Greybird theme)
https://dl.dropboxusercontent.com/s/sxo ... ar.gz?dl=1

Runs on any 32-bit Linux OS
To run gtk-youtube-viewer, run 'gtk-youtube-viewer.cde' (just click) from the extracted "yt-viewer-3.5.0_youtube-dl" directory.
More info here (e.g. run youtube-viewer command line program and update youtube-dl):
http://murga-linux.com/puppy/viewtopic. ... 640#991640

Some limitations:
Clickable links do not open in browser, e.g. in video details or link to get to authentication login page.
Workaround is to right-click on the link, "copy url" and paste in browser address bar.

Fred
Last edited by fredx181 on Thu 01 Nov 2018, 10:51, edited 4 times in total.

roadkill13
Posts: 154
Joined: Wed 10 Aug 2011, 21:41
Location: United States
Contact:

#360 Post by roadkill13 »

In UpupBB18.05 I am getting this:
Can't locate WWW/YoutubeViewer/ParseXML.pm in @INC (you may need to install the WWW::YoutubeViewer::ParseXML module) (@INC contains: /etc/perl /usr/local/lib/i386-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/i386-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/i386-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/share/perl5/WWW/YoutubeViewer/GetCaption.pm line 149.

The module WWW::YoutubeViewer::ParseXML is required!

To install it, just type in terminal:
sudo cpan WWW::YoutubeViewer::ParseXML

=>> Previous warnings:

Post Reply