Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

READ-ONLY-MODE: PLEASE DO NOT POST NEW STUFF!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile       

The time now is Sun 09 Aug 2020, 20:12
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
gtk-youtube-viewer (for lots of pups)
Post new topic   Reply to topic View previous topic :: View next topic
Page 31 of 33 [482 Posts]   Goto page: Previous 1, 2, 3, ..., 29, 30, 31, 32, 33 Next
Author Message
Argolance


Joined: 06 Jan 2008
Posts: 3822
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sat 11 Apr 2020, 13:37    Post subject:  

Bonsoir,
dancytron wrote:
The "click here to get the authentication code" button doesn't do anything, so I went to google and requested the OAuth authentication code and put it into the box, but it doesn't do anything for me.

Is it broken or am I missing something?

Dan

This is probably due to the fact that access to the internet via a web browser is not functional, at least in the 32 bit version...
Maybe you can fill manually data inside the file gtk-youtube-viewer/cde-root/root/.config/youtube-viewer/api.json?

Cordialement.

_________________

Puppy Search
Back to top
View user's profile Send private message Visit poster's website 
dancytron

Joined: 18 Jul 2012
Posts: 1555

PostPosted: Sat 11 Apr 2020, 17:10    Post subject:  

Argolance wrote:
Bonsoir,
dancytron wrote:
The "click here to get the authentication code" button doesn't do anything, so I went to google and requested the OAuth authentication code and put it into the box, but it doesn't do anything for me.

Is it broken or am I missing something?

Dan

This is probably due to the fact that access to the internet via a web browser is not functional, at least in the 32 bit version...
Maybe you can fill manually data inside the file gtk-youtube-viewer/cde-root/root/.config/youtube-viewer/api.json?

Cordialement.


Thanks, that got me on the right track.

You have to sign up for both an api key and the Oauth authentication, put the values in the .json file, then apparently wait a while for it to propagate, THEN press the button in my screenshot and authorize the application.

I opened it via terminal with "gtk-youtube-viewer -debug" when it worked, but I don't know if that made a difference.

See https://github.com/trizen/youtube-viewer about 2/3's the way down the page and the 2 linked help desk calls for more detailed instructions.

Thanks,


Dan
Back to top
View user's profile Send private message 
sindi

Joined: 16 Aug 2009
Posts: 1088
Location: Ann Arbor MI USA

PostPosted: Sun 12 Apr 2020, 20:24    Post subject: gtk-youtube-viewer 3.7.4-2 SFS 3.7.4 PET Precise 571-light
Subject description: Both work including non-GUI from script
 

The SFS works perfectly, GUI version. I did not check the PET as GUI.

I run yt-viewer from a terminal instead of the GUI,
by typing the following two lines (or making a script yt4)

For the SFS:
cd /usr/local/gtk-youtube-viewer
/youtube-viewer.cde --res=480p

For the PET cd to where you unpacked it instead

It works despite two error messages:
[!]Invalid client_id:
[!]Invalid client_secret:

Many thanks to everyone who worked on this. I had been watching
videos on a 4" screen for months now (Newpipe Legacy - which does
not let you specify video length or date).
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4479
Location: holland

PostPosted: Mon 13 Apr 2020, 03:00    Post subject:  

sindi wrote:
It works despite two error messages:
[!]Invalid client_id:
[!]Invalid client_secret:


That has to do with the same as dancytron mentioned above:
Quote:
See https://github.com/trizen/youtube-viewer about 2/3's the way down the page and the 2 linked help desk calls for more detailed instructions.

For to login you need to edit /usr/local/gtk-youtube-viewer/cde-root/root/.config/youtube-viewer/api.json by adding the client_id and client_secret keys.
EDIT: Not sure if login works with this cde-package setup, didn't test.

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
sindi

Joined: 16 Aug 2009
Posts: 1088
Location: Ann Arbor MI USA

PostPosted: Mon 13 Apr 2020, 08:36    Post subject: straw-viewer  

Thanks for the link. I see that the youtube-viewer straw-viewer does not require any keys.
Has anyone packaged it for puppy linux? Slackware has it. I don't need it.
Back to top
View user's profile Send private message 
sindi

Joined: 16 Aug 2009
Posts: 1088
Location: Ann Arbor MI USA

PostPosted: Thu 16 Apr 2020, 12:00    Post subject: How to turn off captions?  

What file do I edit to turn off captions in youtube-viewer?
The latest PET works perfectly in Tahr 6.05 on a 2003 Thinkpad T41.
(Wifi works with Network Wizard only).
Back to top
View user's profile Send private message 
sindi

Joined: 16 Aug 2009
Posts: 1088
Location: Ann Arbor MI USA

PostPosted: Fri 17 Apr 2020, 17:04    Post subject: quirky-142-BABY works with youtube-viewer on 2006 HP dv5000  

No additional libraries or other files are needed to view videos with the 87MB-download BABY quirky 1.42 with kernel 2.6.32.28 from 2011 (older kernel than Precise 5.7.1 light or Tahr 6.05 noPAE).

More libraries are needed for recent browsers (Pale Moon 28.9.1 or Firefox68 ESR).

93% CPU is used at 480p resolution (which often displays at 720p) and the audio is out of sync sometimes.
Back to top
View user's profile Send private message 
sindi

Joined: 16 Aug 2009
Posts: 1088
Location: Ann Arbor MI USA

PostPosted: Sat 18 Apr 2020, 13:59    Post subject: youtube-viewer.conf to eliminate captions  

To eliminate captions, change 1 to 0 in youtube-viewer.conf.

I unpackaged the PET with tar -zxvf and found the config file at:
/mnt/home/yt-viewer.....pkg/cde-root/root/.config/youtube-viewer.conf
and gtk-youtube-viewer.conf

Sometimes when using the command-line version I can no longer see anything I am typing until I exit and start the viewer again.
Back to top
View user's profile Send private message 
PipzDex


Joined: 24 Nov 2018
Posts: 40

PostPosted: Sat 18 Apr 2020, 16:18    Post subject: gtk-youtube-viewer 3.7.4-2  

fredx181 wrote:
Hi sindi,

EDIT: I've read previous posts better now after posting the below, I'm not sure what exactly you're using and what could cause the problems, sorry if below is useless info...
----------------------------------------------------------------------------------------------------

There's no youtube-viewer .pet for Precise (perl version in precise is too old), but there is for Tahr, see here: http://murga-linux.com/puppy/viewtopic.php?p=1009159#1009159
(note that the pet package name is 3.5.3 but in reality it's gtk-youtube-viewer v3.5.0)
EDIT: see also older version and info: http://murga-linux.com/puppy/viewtopic.php?p=1007818#1007818

If you're depending on a cde-package try (if you don't have that version already):
https://dl.dropboxusercontent.com/s/sxo20ipo88m0gp7/yt-viewer-3.5.0_youtube-dl-2018-11-01-fixed-symlinks.tar.gz?dl=1
Shared here: http://murga-linux.com/puppy/viewtopic.php?p=1008585#1008585
It proved to be the best working cde-package (after some failed attempts, see earlier pages)
Extracts to folder: yt-viewer-3.5.0_youtube-dl
Updating youtube-dl from version 2018.10.29 to latest works for me:
Code:
root@live:/mnt/sda5/yt-viewer-3.5.0_youtube-dl# ./youtube-dl.cde --version
2018.10.29
root@live:/mnt/sda5/yt-viewer-3.5.0_youtube-dl# ./youtube-dl.cde -U
Updating to version 2020.01.24 ...
Updated youtube-dl. Restart youtube-dl to use the new version.
root@live:/mnt/sda5/yt-viewer-3.5.0_youtube-dl# ./youtube-dl.cde --version
2020.01.24


Or try the .pet or .sfs based on it from Argolance, see http://murga-linux.com/puppy/viewtopic.php?p=1010065#1010065 (cde-package, as .pet or .sfs)

EDIT:
Quote:
How do I update the youtube-dl in (gtk)-youtube-viewer?
The old one from two weeks ago cannot find URLs.

I tried to update it with ...... youtube-dl -U and it said it updated but I still have the same version of youtube-dl.
(Ran youtube-dl from cde-root with cde-exec).


Download with curl and make executable:
Code:
curl -L https://yt-dl.org/downloads/latest/youtube-dl -o youtube-dl
chmod a+rx youtube-dl

and manually replace in cde-root/usr/local/bin

Fred


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!!
Screenshot(1).jpg
 Description   
 Filesize   106.46 KB
 Viewed   336 Time(s)

Screenshot(1).jpg

Screenshot1.jpg
 Description   my spec
 Filesize   85.27 KB
 Viewed   337 Time(s)

Screenshot1.jpg

Back to top
View user's profile Send private message Visit poster's website 
TiredPup


Joined: 16 Jun 2019
Posts: 75
Location: United States

PostPosted: Sat 18 Apr 2020, 16:52    Post subject:  

PipzDex wrote:

Quote:
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!!


It appears that you are running Precise 5.71 which is a 32 bit OS. The link is empty for all in 32 bit I believe. There is a post or two in this thread discussing how to authenticate for login.

argolance wrote:

Quote:
This is probably due to the fact that access to the internet via a web browser is not functional, at least in the 32 bit version...
Maybe you can fill manually data inside the file gtk-youtube-viewer/cde-root/root/.config/youtube-viewer/api.json?




dancytron wrote:

Quote:
You have to sign up for both an api key and the Oauth authentication, put the values in the .json file, then apparently wait a while for it to propagate, THEN press the button in my screenshot and authorize the application.


This appears to just a few posts above this one.
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4479
Location: holland

PostPosted: Sun 19 Apr 2020, 03:01    Post subject:  

Hi PipzDex,

Quote:
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.php?p=1055258#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.php?p=1052516#1052516
Or the .sfs or .pet from Argolance:
http://murga-linux.com/puppy/viewtopic.php?p=1054444#1054444
Anyway it's in ...../cde-root/root/.config/youtube-viewer/api.json

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
sindi

Joined: 16 Aug 2009
Posts: 1088
Location: Ann Arbor MI USA

PostPosted: Sun 19 Apr 2020, 21:05    Post subject: Youtube-viewer not working again (403 error)  

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.
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4479
Location: holland

PostPosted: Mon 20 Apr 2020, 03:33    Post subject: Re: Youtube-viewer not working again (403 error)  

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

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
sindi

Joined: 16 Aug 2009
Posts: 1088
Location: Ann Arbor MI USA

PostPosted: Tue 21 Apr 2020, 19:21    Post subject: ASUS U5F will not run youtube-viewer
Subject description: strace: exec: No such file or directory
 

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.
Back to top
View user's profile Send private message 
sindi

Joined: 16 Aug 2009
Posts: 1088
Location: Ann Arbor MI USA

PostPosted: Tue 21 Apr 2020, 19:34    Post subject: ASUS U5F is unusable with kernel 4.4 noPAE Precise Light 571  

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.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 31 of 33 [482 Posts]   Goto page: Previous 1, 2, 3, ..., 29, 30, 31, 32, 33 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1493s ][ Queries: 12 (0.0545s) ][ GZIP on ]