Kodi Community Forum

Full Version: Experimental Youtube Music Addon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
This addon is a rewrite of the Experimental Google Music addon to Youtube Music.

Requires:
Kodi 19 Matrix

Important:
On first run it will ask for the headers file with cookie data from your web session.
JSON File template:
Code:
{
    "Cookie": "xxxx",
    "X-Goog-Visitor-Id": "yyyy",
    "origin": "https://music.youtube.com"
}

Obtaining Cookie Data:
Please follow this guide https://ytmusicapi.readthedocs.io/en/lat...on-headers
After you have the cookie and visitor-id strings, just create a text file like the template above and fill the strings.

Donations:
Donations for this addon gratefully accepted.

New version:
plugin.audio.ytmusic.exp-1.0~beta3.zip
- added a preference to stream only audio
- fixed some library navigation errors

Older:
plugin.audio.ytmusic.exp-1.0~beta2.zip
plugin.audio.ytmusic.exp-1.0~beta1.zip

TODO:
- implement logon like Youtube Addon
- support adaptive streaming
- add playlist operations
Thank you!
I'm not using Matrix yet, but a huge THANKS for your efforts!
Thanks a lot ForeverQuest! Gonna try asap! Meanwhile....did a small contribution for all of your efforst. Image
Nope....sorry.....too much of a noob here! I'll have to wait........
(2021-02-26, 03:27)foreverguest Wrote: [ -> ]This addon is a rewrite of the Experimental Google Music addon to Youtube Music.

Requires:
Kodi 19 Matrix

Important:
On first run it will ask for the headers file with cookie data from your web session.
JSON File template:
Code:
{
    "Cookie": "xxxx",
    "X-Goog-Visitor-Id": "yyyy",
    "origin": "https://music.youtube.com"
}

Obtaining Cookie Data:
Please follow this guide https://ytmusicapi.readthedocs.io/en/lat...on-headers

Donations:
Donations for this addon gratefully accepted.

New version:
plugin.audio.ytmusic.exp-1.0~beta1.zip

TODO:
- implement logon like Youtube Addon
- support adaptive streaming
- add playlist operations

Awesome! I will be sure to play with this once I pull the trigger on Matrix (actually, I guess I should start playing with it on my test bed....)
yes, yes, yes.
just installed libreelec nightly with Kodi19 to get a first impression of this. Thanks for keeping my music alive on kodi.
Also made a little donation because hearing to my music on raspberry/kodi after so long time made me my day.
had to implement a little workaround on raspi/kodi before first start. link or rename resources/Lib folder to resources/lib. Case sensitive.
(2021-03-01, 23:28)sluigon Wrote: [ -> ]had to implement a little workaround on raspi/kodi before first start. link or rename resources/Lib folder to resources/lib. Case sensitive.

Hmm, will fix it, thanks.
You can see this new YouTube client for linux https://jbbgameich.github.io/kde/2021/03...otube.html
Would love to try this - but whilst I get what I need to get from Chrome, I don't know how to do anything from the:
'Using the headers in your project' onwards - can someone explain?

Is there another way to create the file for the cookie?
(2021-03-19, 16:32)Abbaskip Wrote: [ -> ]Would love to try this - but whilst I get what I need to get from Chrome, I don't know how to do anything from the:
'Using the headers in your project' onwards - can someone explain?

Is there another way to create the file for the cookie?

Hi, after you have the cookie and visitor-id strings, just create a text file like the template below and fill the strings:

{
    "Cookie": "xxxx",
    "X-Goog-Visitor-Id": "yyyy",
    "origin": "https://music.youtube.com"
}
(2021-02-26, 03:27)foreverguest Wrote: [ -> ]Important:
On first run it will ask for the headers file with cookie data from your web session.
JSON File template:
Code:
{
    "Cookie": "xxxx",
    "X-Goog-Visitor-Id": "yyyy",
    "origin": "https://music.youtube.com"
}

Obtaining Cookie Data:
Please follow this guide https://ytmusicapi.readthedocs.io/en/lat...on-headers
After you have the cookie and visitor-id strings, just create a text file like the template above and fill the strings.
Geez, I was pasting cookies instead of that cookie all night yesterday. Today I got it working in 5 minutes.
Thank you so much for this!
I have a question - is there a way to disable music videos from saved playlists and play only audio?
(2021-03-29, 01:18)ray2301 Wrote: [ -> ]
(2021-02-26, 03:27)foreverguest Wrote: [ -> ]Important:
On first run it will ask for the headers file with cookie data from your web session.
JSON File template:
Code:
{
    "Cookie": "xxxx",
    "X-Goog-Visitor-Id": "yyyy",
    "origin": "https://music.youtube.com"
}

Obtaining Cookie Data:
Please follow this guide https://ytmusicapi.readthedocs.io/en/lat...on-headers
After you have the cookie and visitor-id strings, just create a text file like the template above and fill the strings.
Geez, I was pasting cookies instead of that cookie all night yesterday. Today I got it working in 5 minutes.
Thank you so much for this!
I have a question - is there a way to disable music videos from saved playlists and play only audio?

Not yet, I'll  add an option for it.
(2021-03-22, 14:47)foreverguest Wrote: [ -> ]
(2021-03-19, 16:32)Abbaskip Wrote: [ -> ]Would love to try this - but whilst I get what I need to get from Chrome, I don't know how to do anything from the:
'Using the headers in your project' onwards - can someone explain?

Is there another way to create the file for the cookie?

Hi, after you have the cookie and visitor-id strings, just create a text file like the template below and fill the strings:

{
    "Cookie": "xxxx",
    "X-Goog-Visitor-Id": "yyyy",
    "origin": "https://music.youtube.com"
}
Thanks, so simple. I was complicating things.

Actually I get an error when I try to play from my uploads. Will post logs later.

Assuming down the line further functions (radio style playlists etc) would be added?
Pages: 1 2 3