关于kodi中播放youtube的插件:
did not work with my 5 year old API credentials.
Created new OAUTH client in the Google cloud console, with the new ID and secret from that the sign in in the Addon now worked.
However, on 7.1.1.6 I was still getting the “Confirm you’re not a bot.” error. Updating to 7.2 beta 4 finally also took care of that.
如何reset kodi中的youtube addon?
- 删除plugin, 然后install from zip 重装. 然后重启
- 或者删除 kodi profile/addon_data 目录中的 youtube 目录, 然后重启.
- 或者进入youtube addon的设置页面, 逐页 reset 设置为 default
- 或者到 youtube addon 的设置页面中的 maintenance option > reset access manager
- 或者 (高级用户), 手动编辑video_info.py file.
步骤: 1
首先到上面的release页面中下载最新版的addon, 包括beta版.
然后安装.
- 注意: 如果有旧版kodi先卸载旧版, 然后安装新版.
之后需要重启kodi避免残留. 之后进入youtube addon完成初始化设置导航.
访问: https://console.cloud.google.com/apis/library (没登录google的这时登录)
- 删除 (shutdown) 旧的youtube api 设置 (如果有的话)
- select a project > new project: name: 随便 “youtube addon” > create
- 返回上面的”library”页, 选择 youtube data api v3 > enable
- 进入左侧菜单的 credentials > 上面 create credentials > api key
- 记录下 api key 备用, 然后关闭.
- 左侧菜单 Oauth Consent Screen: type: external, create
- application 名称: 随便 如 youtube app; 然后save
- 上面 create credentials > oauth client id
- 用途选web或者tv都行 > create
- developer选择当前google account的user
- 在遇到test user的时候, 加上当前 google account 的 email
- 记录 client id 和 client secret > OK
- 保持页面开启, 不要退出google, 后面还需要
转到kodi youtube addon中 > settings > api:
- 将上面记录的三个码对应填入
- 然后退出settings
- 选择 sign in
- 屏幕上会先后出现2组验证码, 需要分别打开相同的网址 https://google.com/device , 先后填入, 当有提示说仅test之类的, 注意选择小字的continue.