Experimental Youtube Music Addon
#1
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~beta4
- update library dependencies, should fix playback


Older:
plugin.audio.ytmusic.exp-1.0~beta3.zip
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
Reply
#2
Thank you!
Reply
#3
I'm not using Matrix yet, but a huge THANKS for your efforts!
If I have helped you or increased your knowledge please click the 'Thumb Up - Like' button to show me your appreciation :)
For YouTube questions see the official thread here.
Reply
#4
Thanks a lot ForeverQuest! Gonna try asap! Meanwhile....did a small contribution for all of your efforst. Image
Reply
#5
Nope....sorry.....too much of a noob here! I'll have to wait........
Reply
#6
(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....)
Reply
#7
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.
Reply
#8
had to implement a little workaround on raspi/kodi before first start. link or rename resources/Lib folder to resources/lib. Case sensitive.
Reply
#9
(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.
Reply
#10
You can see this new YouTube client for linux https://jbbgameich.github.io/kde/2021/03...otube.html
Reply
#11
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?
Reply
#12
(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:

json:
{
    "Cookie": "xxxx",
    "X-Goog-Visitor-Id": "yyyy",
    "origin": "https://music.youtube.com"
}
Reply
#13
(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?
Reply
#14
(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.
Reply
#15
(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:

json:
{
    "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?
Reply

Logout Mark Read Team Forum Stats Members Help
Experimental Youtube Music Addon0
This forum uses Lukasz Tkacz MyBB addons.