How to make your own API key for YouTube plugin! It works!!!

There are 40 replies in this Thread which was already clicked 9,114 times. The last Post () by houba2007.

  • A long but instructive tutorial: https://seo-michael.co.uk/how-…be-api-key-id-and-secret/ - it requests some patience!



    In short, we should create our own API keys and if we do share our version of YouTube plugin then, we better do it only with a small number of people, not everybody, because it won't work for long...


    Good luck!:cool1:

    "Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!"


    http://www.columbia.edu/acis/ets/CCREAD/etscc/kant.html

  • gorski

    Changed the title of the thread from “HOw to make your own API key for YouTube plugin which will work for you... allegedly...” to “How to make your own API key for YouTube plugin - which will work for you... allegedly...”.
  • Once you do that, then do as George says:


    Quote

    ...you have to create your own "Api Keys" , and than replace the default in "YouTubeUi.py" file


    the file is in usr/lib/enigma2/python/Plugins/Extensions , and depends the image, the .py file may missing, and there will be only the .pyo

    in that case , you need to download the content from here: https://raw.githubusercontent.com/Taapat…rc/YouTubeUi.py

    and create a .py file .change the Api keys, place it in youtube foder, and reboot your receiver.


    Attached is a YT plugin and an example py file, so George's link above is then not needed (I think)...


    YT plugin installs like this, using PuTTy Telnet app:


    Code
    opkg install -force-overwrite /tmp/*.ipk


    * = the exact name of the YT file you will install.

  • Latest YB plugin for E2 and this....



    Excellent catch! Exactly what needs to be done!


    YT plugin makes a YouTube.key file in etc/enigma2, which must be edited with your newly created API details (3 of them):


    API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    YOUTUBE_API_CLIENT_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com

    YOUTUBE_API_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx


    Tested, all working, both in Enigma2 > Kodi > YouTube addon and in


    Enigma2 > YouTube plugin!


    Cool! :)

    "Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!"


    http://www.columbia.edu/acis/ets/CCREAD/etscc/kant.html

  • Here's the procedure:


    1) Create your API, as described.


    2) Install the ipk manually.


    3) Edit the key file.


    4) Restart!


    Done!

    "Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!"


    http://www.columbia.edu/acis/ets/CCREAD/etscc/kant.html

  • The main reason why I started this thread was that I knew people won't read back in the long thread and the same questions will be asked for a millionth time all over again...


    Hence, I respectfully suggest this is made a Sticky and redirection/link to it is easy then.......

    "Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!"


    http://www.columbia.edu/acis/ets/CCREAD/etscc/kant.html

  • gorski

    Changed the title of the thread from “How to make your own API key for YouTube plugin - which will work for you... allegedly...” to “How to make your own API key for YouTube plugin! It works!!!”.
  • This is just info thread, you should have posted the question in the other thread, I think...


    Anyway, post no. 3 - why don't you read a bit... as in carefully?

    "Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!"


    http://www.columbia.edu/acis/ets/CCREAD/etscc/kant.html

  • I noticed that in the latest version there is also a file called


    YouTube.key-opkg


    in the same enigma2 folder. I put the API key details into it, too... Just in case...:laugh1:

    "Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!"


    http://www.columbia.edu/acis/ets/CCREAD/etscc/kant.html

  • as in oscam folder... if there is the necessary file (with any config or any keys inside) the system does not overwritte it, but keeps it as " file-opkg" and keeps it here as an example. you can keep it, or delete it... nothing is searching for this file...

  • I see, thanx - I thought it might be needed for upgrades to keep the file content or summat... :)


    Can you tell I'm not a coder?:laugh1:

    "Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!"


    http://www.columbia.edu/acis/ets/CCREAD/etscc/kant.html

  • Yeah, I put the key file in before I did the ipk installation, hence to opkg extra file, as I now know... ;)

    "Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!"


    http://www.columbia.edu/acis/ets/CCREAD/etscc/kant.html

  • ACTIVATE YOUR DEVICE


    Go to setting of YouTube app by starting YT app and pressing MENU button >


    Login on startup > yes >


    efcff84b965.png


    > you will have to authenticate the device's access to your API via your Google account.


    Go to google.com/device on your PC/tablet/mobile phone/etc. >


    cbcc762367d140eaf906c6b.png


    > and put in the code from the TV screen now...


    Usually one gets a warning message like this:


    7b18ceb602debe8390.png


    Continue by clicking on Advanced...


    6c7fcd651.png


    Then to APIkey4YT and you get this...


    176e72e7a89704f0f294.png


    Click on Allow and wait for "Success" message...


    Wait a bit on your STB and the little window will disappear...


    Press green button on your remote...


    All done! Search for stuff of YT app!

    "Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!"


    http://www.columbia.edu/acis/ets/CCREAD/etscc/kant.html

  • In STBs with E2 and Kodi, YT keys can be entered in this Kodi addon here:


    /media/hdd/.kodi/addons/plugin.video.youtube/resources/lib


    File: youtube_authentication.py in lines 98 - 100... ;)

    "Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!"


    http://www.columbia.edu/acis/ets/CCREAD/etscc/kant.html

  • I already have, beps. I don't hold back, I share whatever I know - anyone who reads my posts should know that....


    Look up and read carefully, esp. post 13...

    "Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!"


    http://www.columbia.edu/acis/ets/CCREAD/etscc/kant.html

  • I don't feel like helping?!?!?!? Look above. Does that look to you like I am not willing to help? Hellooooo?!?


    OK, in that case I have to say, equally vaguely, "it seems like you do not understand"...


    Can you put yourself into my shoes for a moment? Yes? OK....


    See, this is typical of many users: one DOESN'T WANT TO WRITE anything at all ("it doesn't work" or "you missed a bit" or something absolutely vague like that) - BUT one wants me to start writing a somewhat complex procedure, i.e. EVERYTHING ALL OVER AGAIN, FROM SCRATCH and to be precise in GUESSING what he (the user) "missed".... BUT STRICTLY without the user saying anything at all... So, start the hard work yet again, gorski, because I can't be bothered/I do not want to work even a tiny bit, to explain what it is that I did and "couldn't find" or "figure out" etc. etc.


    OK, let me go fetch my crystal ball...

    "Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!"


    http://www.columbia.edu/acis/ets/CCREAD/etscc/kant.html

  • Code
    I wanted to ask you some questions about it I have to use the translator to understand so there is no need if you do not want to keep asking, and as a gentleman I made you thanks anyway
  • Translator or not - it makes no difference... It's just another 5 seconds more to hit the button "translate", so don't try to hide so obviously behind that... All my objections still stand!


    I.e. you did not make the minimal effort of giving me the necessary information to see what you are doing - how can I help you if I can't see what you are doing, so I can tell you what you are doing wrong?


    I am so not going to start writing it all over again, from scratch.... I mean, what would be the point? You could easily come back and say "Help me, it's not working"...


    Well, I say "it is working"! I made the effort. That means I an helping! That means I do want to help! My actions here prove it! So, don't start with this "gentleman" thing, since I am one, proven by my actions all over the internet, over 2 decades of being in the hobby! Please, I have had enough of this kind of silly "emotional blackmail", esp. from the people who are frequently just darn lazy to make the minimal effort....


    Now, it's your turn to make the effort! If you do not - I will presume you do not need any help, that you now did exactly as I described above and that all is working...

    "Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!"


    http://www.columbia.edu/acis/ets/CCREAD/etscc/kant.html

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!