View previous topic :: View next topic |
Author |
Message |
exhausted n00b
Joined: 20 Jul 2013 Posts: 28 Location: Scanner Hell
|
Posted: Tue Apr 28, 2015 12:44 pm Post subject: Anybody know how to get Minitube working w/ Google API key? |
|
|
I've read the message from the emerge output. I've read everything relevant I can find online, including the instructions from the developer. I can generate a Google browser API key, create and set the environment variable MINITUBE_GOOGLE_API_KEY to the name of my key, and I can even compile Minitube, passing the Google API key/environment variable check during the emerge. The environment variable shows up correctly when I check it use the set command. However, every time I search for videos, I get the following server denied error:
Code: |
403 "Error downloading https://www.googleapis.com/youtube/v3/videos?key=****************&part=id&chart=mostPopular&maxResults=1 - server replied: Forbidden" 202
Fatal error: No working API keys!
403 "Error downloading https://www.googleapis.com/youtube/v3/search?key=****************&part=snippet&type=video&maxResults=50&q=serge%20gainsbourg - server replied: Forbidden" 202
"Error downloading https://www.googleapis.com/youtube/v3/search?key=****************&part=snippet&type=video&maxResults=50&q=serge%20gainsbourg - server replied: Forbidden"
|
(I've replaced the actual key with asterisks to comply with Google's terms of service.)
It looks to me as if the necessary API key exists on Google's side, Minitube is using the correct API key, but Google rejects it.
I've played around with the referrer information, regenerated the key, recompiled Minitube—everything I can think of but I just can't get it to work.
My best guess: The referrer information is incorrect. This seems likely to me since none of the instructions I've found explain what I should specify. I've tried
Code: |
localhost/*
*.verizon-gni.net/*
*.verizon*.*/*
*/*
*
|
Maybe I'm doing the wrong thing when it comes to the referers. I'm operating entirely on guesswork here.
Something else: The instructions from the minitube developer specify that I'm supposed to create a Google browser API key. Maybe this is wrong and I'm supposed to create a Google YouTube API instead?
I wouldn't mind writing a how-to for this (if one is needed) if I can just get it working.
I'm using Minitube 2.4.
Any help would certainly be appreciated! |
|
Back to top |
|
|
Unknown-Creation n00b
Joined: 25 Nov 2011 Posts: 11
|
Posted: Sat May 30, 2015 11:37 pm Post subject: |
|
|
I got Minitube 2.4 to work by doing the following:
1.) Create a new project at https://console.developers.google.com/ . Call it whatever you want.
2 .) Select your new project. In the sidebar to the right, select APIs & Auth -> Credentials and create a new Public API Access Key (browser key).
3.) Once that is done, there is some information about the key you generated listed on that page. The API key needs to be passed to the ebuild using the variable MINITUBE_GOOGLE_API_KEY. An easy way to do it with little fuss is to place this inside a file in the directory /etc/portage/env (ex: minitube_google_api_key):
Code: |
MINITUBE_GOOGLE_API_KEY=*your key goes here*
|
Then place this line in /etc/portage/package.env:
Code: |
media-video/minitube minitube_google_api_key # or whatever you decided to call your file that contains the MINITUBE_GOOGLE_API_KEY variable
|
4.) You can build Minitube now, but we're not done yet. From your project page, select APIs & Auth -> APIs, select the Youtube Data API and enable it. Now videos will play in Minitube using the key you generated.
5.) You can build Minitube if you haven't already. |
|
Back to top |
|
|
F1r31c3r Tux's lil' helper
Joined: 31 Aug 2007 Posts: 107 Location: UK
|
Posted: Thu Oct 06, 2016 3:47 pm Post subject: |
|
|
It is 2016 and version 2.5.2 is out.
Here is how it is done now for anyone that is having this issue on upgrading.
*
* Since version 2.4, you need to generate a Google API Key to use
* with this application. Please head over to
* https://console.developers.google.com/ and
* https://github.com/flaviotordini/minitube/blob/master/README.md
* for more information. Once you have generated your key,
* please put it in QSettings key "googleApiKey", e.g.:
* # echo 'googleApiKey=YourKeyHere' >> "${HOME}/.config/Flavio Tordini/Minitube.conf"
*
So Edit your users minitube.conf.
Code: | ${HOME}/.config/Flavio Tordini/Minitube.conf |
Add in your google API code as such into the config file.
Code: | googleApiKey=YourKeyHere |
Load up minitube and you will find it works. _________________ A WikI, A collection of mass misinformation based on opinion and manipulation by a deception of freedom.
If we know the truth, then we should be free from deception (John 8:42-47 ) |
|
Back to top |
|
|
|
|
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
|
|