Kodi Community Forum
Experimental Youtube Music Addon - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=148)
---- Thread: Experimental Youtube Music Addon (/showthread.php?tid=360827)

Pages: 1 2 3


Experimental Youtube Music Addon - foreverguest - 2021-02-26

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/latest/setup.html#copy-authentication-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


RE: Experimental Youtube Music Addon - MKANET - 2021-02-26

Thank you!


RE: Experimental Youtube Music Addon - jmh2002 - 2021-02-26

I'm not using Matrix yet, but a huge THANKS for your efforts!


RE: Experimental Youtube Music Addon - MAPO1978 - 2021-02-26

Thanks a lot ForeverQuest! Gonna try asap! Meanwhile....did a small contribution for all of your efforst. Image


RE: Experimental Youtube Music Addon - MAPO1978 - 2021-02-26

Nope....sorry.....too much of a noob here! I'll have to wait........


RE: Experimental Youtube Music Addon - starslayer74 - 2021-03-01

(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/latest/setup.html#copy-authentication-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....)


RE: Experimental Youtube Music Addon - sluigon - 2021-03-01

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.


RE: Experimental Youtube Music Addon - sluigon - 2021-03-01

had to implement a little workaround on raspi/kodi before first start. link or rename resources/Lib folder to resources/lib. Case sensitive.


RE: Experimental Youtube Music Addon - foreverguest - 2021-03-01

(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.


RE: Experimental Youtube Music Addon - zypy - 2021-03-14

You can see this new YouTube client for linux https://jbbgameich.github.io/kde/2021/03/13/audiotube.html


RE: Experimental Youtube Music Addon - Abbaskip - 2021-03-19

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?


RE: Experimental Youtube Music Addon - foreverguest - 2021-03-22

(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"
}



RE: Experimental Youtube Music Addon - ray2301 - 2021-03-29

(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/latest/setup.html#copy-authentication-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?


RE: Experimental Youtube Music Addon - foreverguest - 2021-03-29

(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/latest/setup.html#copy-authentication-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.


RE: Experimental Youtube Music Addon - Abbaskip - 2021-03-31

(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?


This forum uses Lukasz Tkacz MyBB addons.