GitHunt
GO

Goldenfreddy0703/plugin.audio.ytmusic.exp

Experimental Youtube Music for kodi created by Foreverguest

Kodi version
License: GPL3

YT Music (plugin.audio.ytmusic.exp)

This addon is a rewrite of the Experimental Google Music addon to Youtube Music made by Foreverguest.

All credit goes to Foreverguest.

Used libraries and versions

Requires:

Kodi 19 Matrix

Installation & Updates

You can install it via repository to provide automatic updates (future updates may require to rebuild database)

or install it manually (updates should be installed manually)

Authentication using headers

Unfortunately, the use of OAuth is no longer supported by YTMusic. Instead, on first run, the add-on will ask for a headers file with cookie data from your web session. The plugin will accept either 'raw header files' or 'JSON files'.

Obtaining authentication headers

Please follow the guide below to obtain authentication headers.
For longer-lasting cookies, it is recommended that you do everything in a fresh, private browsing session. After obtaining the cookie, close the private browser immediately (but do not sign out of YouTube).

https://ytmusicapi.readthedocs.io/en/stable/setup/browser.html#copy-authentication-headers

Using the authentication headers

  • Copy the request headers to a plain text file that you place in a path which is accessible from within Kodi.
  • Start the add-on and navigate to a menu item requiring authenticated access to YTMusic, e.g. YTMusic Library -> Artist subscriptions.
  • A pop-up will open asking you to choose either Raw Headers or JSON.
  • Select Raw Headers.
  • Navigate to the plain text file created in the first step and click on OK.
  • YTMusic.Exp converts the raw headers to a headers_auth.json file which is stored in userdata/addon_data/plugin.audio.ytmusic.exp and will authenticate from now on using the information contained therein.

NEW: Unlimited Playlist Loading (YouTube v3 API)

This addon now supports loading complete playlists without the 100-song limitation! By default, the addon uses YouTube v3 Data API (the same approach as the successful YouTube addon) to load unlimited playlist items.

Benefits:

  • No more 100-song limit: Load playlists with thousands of songs
  • Proven reliability: Uses the same method as the YouTube addon
  • Automatic fallback: Falls back to YouTube Music API if needed
  1. Get a YouTube Data API v3 key from Google Cloud Console
  2. Enable "YouTube Data API v3" for your project
  3. Add the API key in addon settings under "YouTube API Key"

Without an API key, the addon will fall back to YouTube Music API (limited to ~100 songs per playlist).

For detailed setup instructions, see YOUTUBE_V3_README.md

Donations:

Donations for this addon gratefully accepted.

Note: All Donations will be going to Foreverguest.

Versions:

From 1.0~beta8 ongoing you can find the releases under Releases.

Older:

plugin.audio.ytmusic.exp-1.0~beta7

plugin.audio.ytmusic.exp-1.0~beta6

plugin.audio.ytmusic.exp-1.0~beta5

  • Update ytmusicapi and pytube thanks to @woernsn.

plugin.audio.ytmusic.exp-1.0~beta4

plugin.audio.ytmusic.exp-1.0~beta3

plugin.audio.ytmusic.exp-1.0~beta2

plugin.audio.ytmusic.exp-1.0~beta1

TODO:

  • extend headless mode to song, album and playlist context menus
  • implement OAuth login
  • support adaptive streaming
  • add playlist operations
  • add Android/Linux support
  • make Youtube Music thumbnails have better resolution
  • adding icons in the future

Help needed with maintaining!!!

I am very clueless on this project currently cause this addon was made by foreverguest who has done a very great job maintaining this addon. Be aware that this is a community driven project, so feel free to submit PR's yourself to improve the code and/or help others with support on the forums etc. If you're willing to really participate in the development, please contact me so I can give you write access to the repo. I will do my best to maintain the project for foreverguest. Thanks for understanding!

All credit goes to foreverguest

License

Licensed under The GPL License.

Goldenfreddy0703/plugin.audio.ytmusic.exp | GitHunt