Page 24 of 25

Posted: Sun 19 Apr 2020, 07:01
by fredx181
Hi PipzDex,
Hi fredx181

in my precise this works fine, just one minor detail, i cant get the code to authenticate, the link is empty...
can you help me with this?
thanks!!
You'll need to edit the api.json file. See also dancytron's post here:
http://murga-linux.com/puppy/viewtopic. ... 58#1055258 (and one post earlier)
Login how-to:
https://github.com/trizen/youtube-viewer#logging-in

The exact location of api.json depends on which package you use, the "portable cde-package":
http://murga-linux.com/puppy/viewtopic. ... 16#1052516
Or the .sfs or .pet from Argolance:
http://murga-linux.com/puppy/viewtopic. ... 44#1054444
Anyway it's in ...../cde-root/root/.config/youtube-viewer/api.json

Fred

Youtube-viewer not working again (403 error)

Posted: Mon 20 Apr 2020, 01:05
by sindi
Today youtube-viewer can no longer find any videos.

403 Forbidden. Error occurred on URL: https://www.googleapis.com/youtube/v3/search?key=......
Use of uninitialized value in numeric gt..........

I confirmed this on four laptops all with Precise 5.7.1-light kernel 3.14.56 noPAE.

I had it working for about three days. Google got ahead of us again.

Re: Youtube-viewer not working again (403 error)

Posted: Mon 20 Apr 2020, 07:33
by fredx181
sindi wrote:Today youtube-viewer can no longer find any videos.

403 Forbidden. Error occurred on URL: https://www.googleapis.com/youtube/v3/search?key=......
Use of uninitialized value in numeric gt..........

I confirmed this on four laptops all with Precise 5.7.1-light kernel 3.14.56 noPAE.

I had it working for about three days. Google got ahead of us again.
An hour ago I had the same error, but now it's working again.
It could be that the API key was temporarily disabled because of too many people using it at the same time (there are quota for that , e.g. max users per day or max user per 100 seconds, something like that, don't know really)
Currently (default) my personal api key is being used (in root/.config/youtube-viewer/api.json)
Perhaps a bit naive, but I didn't expect many people would use this gtk-youtube-viewer setup.

So, let's wait and see, please report here if anyone gets the 403 error again.

Best is, to be on the safe side, to get your own personal API key and add it in api.json, you need a google account for that.
https://github.com/trizen/youtube-viewer#logging-in (instructions to get api key and client id etc..)

EDIT: 21 April, still working OK.

Fred

ASUS U5F will not run youtube-viewer

Posted: Tue 21 Apr 2020, 23:21
by sindi
Using the same package and script as on other laptops. the U5F will not run youtube-viewer. I tried with Precise571-retro Precise-571-light (kernel 3.14.56) and Tahr 6.05.

The laptop keyboard keys have English and traditional Chinesecharacters.

In Precise Light (kernel 3.14.56) the touchpad and keyboard may also freeze up but only in X. I will try kernel 4.4, which fixed similar problems on another Asus.

ASUS U5F is unusable with kernel 4.4 noPAE Precise Light 571

Posted: Tue 21 Apr 2020, 23:34
by sindi
Touchpad and keyboard are completely unusable as soon as I boot. so I cannot even test without X. This did not fix the youtube-viewer problem.

ASUS netbook EEEPC 10 inch also did not run Precise Light.
Tahr works on both of these. Wary works except for fbcon.

gtk-youtube-viewer very slow to start playing a video

Posted: Wed 22 Apr 2020, 21:30
by sindi
Something was wromg with the PET package. I started over and the ASUS now plays videos. The SFS also works.

I notice that gtk-youtube-viewer takes much longer to start playing than the non-GUI youtube-viewer. On another 2006 laptop it takes over 2 min to start playing. While loading gtk-youtube-viewer there are numerous complaints about lines 340 and 3502 and plugins.

The lASUS U5F aptop cannot be made to work with Precise Light kernel 44 (noPAE -freezes) or 41 (PAE - does not recognize wifi or eth0 and several keys do not work properly in the vt) or k31456 (noPAE - freezes). If I shut the laptop off (power key) after k41, when I turn it on again the arrow keys do not work to choose between OSes with grub4dos - I can only choose the first or last one listed. The problem fixed itself overnight with laptop off.

Tahr works properly, as does Wary 5.5. Tahr plays youtube.

Posted: Tue 28 Apr 2020, 03:17
by vtpup
Everything has been working fine Fred for me on Tahrpup 6.0.5.

I just tried it on my C720 converted Chromebook running Bionicpup64, with 32 bit compatibility sfs, and using the cde version of gtk-youtube-viewer. I get video, but no audio. If I run the same video on the same setup in Seamonkey browser, I do get sound, so I think the sound system is working...

MPV is the player.

Posted: Tue 28 Apr 2020, 06:47
by fredx181
vtpup wrote:Everything has been working fine Fred for me on Tahrpup 6.0.5.

I just tried it on my C720 converted Chromebook running Bionicpup64, with 32 bit compatibility sfs, and using the cde version of gtk-youtube-viewer. I get video, but no audio. If I run the same video on the same setup in Seamonkey browser, I do get sound, so I think the sound system is working...

MPV is the player.
Hi vtpup, apparently the cde package is not the way to go on 64 bit.
What works is installing first the older version (3.5.3) .pet for bionic64, that I shared Here
https://dl.dropboxusercontent.com/s/h2u ... 4.pet?dl=1
(it has the perl dependencies inside)
Then install this "upgradable" pet (v3.7.4):
https://dl.dropboxusercontent.com/s/jh5 ... h.pet?dl=1

Fred

Posted: Tue 28 Apr 2020, 12:22
by vtpup
Hi Fred, thanks! I did try that combination earlier, but it resulted in:

Code: Select all

root# gtk-youtube-viewer
Can't locate File/Spec/Functions.pm in @INC (you may need to install the File::Spec::Functions module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/bin/gtk-youtube-viewer line 45.
BEGIN failed--compilation aborted at /usr/bin/gtk-youtube-viewer line 45.
the cde version did run, and play videos, but without sound.

Posted: Tue 28 Apr 2020, 17:43
by fredx181
Hi vtpup, that's strange, it works for me and the Functions.pm module is included in Bionicpup64:

/usr/lib/perl/5.26.1/File/Spec/Functions.pm

I have Bionicpup64 version 7.9.5
Maybe check if you have that file, and could it be that the 32bit compatibility sfs influences things ? (just guessing)

Edit: I have no idea how to solve the sound problem with the cde-package.

EDIT2: You may also want to check if /usr/lib/x86_64-linux-gnu is correctly linked (should be a symlink to ./ (which is /usr/lib)

Fred

Posted: Tue 28 Apr 2020, 18:27
by vtpup
Hi Fred,

I checked and there is no usr/lib/perl/5.2.6.1/File/ directory at all.

I checked both the Bionicpup64 8.0 installs on my Chromebook, and on my regular laptop (Acer5349) which normally runs Tahrpup32. The Bionicpup64 8.0 on that one is a fresh install.

Nope, neither has a 5.2.6.1/File/ directory at all

The Chromebook does have both gtk-youtube-viewer 3.5.3 Bionic amd64 pet and 3.7.4-2 noarch.

Is the "File Spec" stuff in devx, maybe? If you'd installed that, it might be an explanation. I don't think the 32 bit compatibility sfs would actually remove anything....

Posted: Tue 28 Apr 2020, 19:57
by fredx181
vtpup wrote:I checked and there is no usr/lib/perl/5.2.6.1/File/ directory at all.
Yes, I have Bionicpup64 8.0 now and it is the same as you, so that explains it (I had older Bionicpup previously with perl installed by default)

Installing perl_5.26.1 from PPM makes gtk-youtube-viewer work, just install it (although it's labeled "Already installed", it's probably not completely installed)

Fred

Posted: Tue 28 Apr 2020, 23:27
by vtpup
Thanks once again Fred! That works perfectly now. :) :)

Posted: Fri 29 May 2020, 13:36
by fredx181
Version 3.7.4 stopped working for playing many video's, here's an "upgradable" pet package that should fix it, v3.7.6:
https://dl.dropboxusercontent.com/s/fo0 ... h.pet?dl=1

Fred

Posted: Fri 29 May 2020, 17:33
by Argolance
Thank you!
But what has to be updated/changed in the standalone version?
Youtube crap! :evil:

Posted: Fri 29 May 2020, 18:55
by fredx181
Argolance wrote:Thank you!
But what has to be updated/changed in the standalone version?
Youtube crap! :evil:
Hi Argolance, Yes, very annoying, those changes everytime.
If you extract the pet then basically the contents of usr/bin should go in cde-root/usr/bin and the contents of usr/share/perl5 (WWW and auto) should go in cde-root/usr/share/perl5 by replacing all.
But not sure what exactly you need to do with the .glade files, but you probably know.
New script in usr/bin is gtk2-youtube-viewer, gtk-youtube-viewer script should execute that one, but in case that doesn't work in the cde environment, you could try renaming gtk2-youtube-viewer to gtk-youtube-viewer

Cheers,

Fred

Posted: Sat 30 May 2020, 15:49
by Argolance
Thank you fredx181,
Works! Will make new SFS and PET packages soon of the standalone version plublished above...

Cordialement.

Posted: Sat 30 May 2020, 18:52
by fredx181
Just now I got an error with v3.7.6, 403 Forbidden, hopefully a temporary thing.

EDIT; Next day, now it's working again, I wish I knew the reason why.

Posted: Sun 31 May 2020, 18:40
by Argolance
Bonsoir,
Will make new SFS and PET packages soon of the standalone version published above...
:arrow: DONE!

Cordialement.

Posted: Mon 29 Jun 2020, 09:05
by memo
hi all,

is the gtk-youtube-viewer latest version for xenialpup 32 bit available?

regards,