RPie youtube api

  • I'm trying to get youtube up and running on my RPi4 4GB. I'm using the 9.95.1img.gz. I tried updating to 10, but it seemed to break most of my add-ons. (Most just video stuff from the included archives.). I have my api keys, but I keep failing to log in. I can SSH into my pi but I don't know what to do from there. I spent a lot of time making sure I typed the keys in right, but the last part: {.apps.googleusercontent.comSecret} doesn't fit the box. I've tried switching to various users, but so far nothing works.

    What am a doing wrong?

    Thanks,

    Frank

  • Do not add ".apps.googleusercontent.comSecret" to the info being presented. Below is an example of how a working config looks (with some random characters in the keys changed).

    In /storage/.kodi/userdata/addon_data/plugin.video.youtube/settings.xml:

    Code
        <setting id="youtube.allow.dev.keys">true</setting>
        <setting id="youtube.api.config.page" default="true">false</setting>
        <setting id="youtube.api.id">955724949404-88ed74c3e6e73e8ch35t9qr15t0ab7rb</setting>
        <setting id="youtube.api.key">AIzaSyDi4CaM69OCjHDfr2GZ1WYZM3w7oMEzGsY</setting>
        <setting id="youtube.api.secret">C760ubRG-KAYR3pglQyc5m1n</setting>

    In /storage/.kodi/userdata/addon_data/plugin.video.youtube/

    Code
    {
        "keys": {
            "developer": {},
            "personal": {
                "api_key": "AIzaSyDi4CaM69OCjHDfr2GZ1WYZM3w7oMEzGsY",
                "client_id": "955724949404-88ed74c3e6e73e8ch35t9qr15t0ab7rb",
                "client_secret": "C760ubRG-KAYR3pglQyc5m1n"
            }
        }
    }