You are not logged in.
In recent update of youtube-viewer there was notification:
Because of the increasing popularity of youtube-viewer, the
developer's API key is occasionally exceeding its usage limit. Users
who are able are requested to create their own free API keys to reduce
the load. Please refer to /usr/share/doc/youtube-viewer/README.md for instructions.
Today when using youtube-viewer I encounter this errors:
[403 Forbidden] Error occurred on URL: https://www.googleapis.com/youtube/v3/search?key=[...]&maxResults=20&part=snippet&prettyPrint=false&q=soldier%20of%20fortune&type=video
Use of uninitialized value in numeric gt (>) at /usr/share/perl5/vendor_perl/WWW/YoutubeViewer/Utils.pm line 224, <FIN> line 10.
[!] No video results!
[403 Forbidden] Error occurred on URL: https://www.googleapis.com/youtube/v3/search?key=[...]&maxResults=20&part=snippet&prettyPrint=false&q=gameplay&type=video
Use of uninitialized value in numeric gt (>) at /usr/share/perl5/vendor_perl/WWW/YoutubeViewer/Utils.pm line 224.
[!] No video results!
I read /usr/share/doc/youtube-viewer/README.md and tried to setup this google api key, but I don't have experience with google cloud services. I don't know which service should I enable and if it's free of charge or not.
Can someone advise me how to do it?
Or maybe it's some other youtube-viewer error?
Last edited by xerxes_ (2020-02-27 19:50:07)
Offline
I solved this by carefully reading /usr/share/doc/youtube-viewer/README.md, setup youtube key with help in this links:
https://console.developers.google.com/apis/dashboard
https://rapidapi.com/blog/how-to-get-youtube-api-key/
https://developers.google.com/adwords/a … entication
Offline