-
-
Notifications
You must be signed in to change notification settings - Fork 13
Home
Information on Music Video Support
Download Music Videos Automatically using "youtube-dl" for use with Plex/Kodi/Emby/Jellyfin
Plex Example:
The script connects to "https://musicbrainz.org" or a mirror (if configured) and pulls every recording for an artist based on artists stored in Lidarr. It then cuts the list down to only Video recordings, then it checks each Video recording for a URL to an online source. Lastly, it then sends that URL to youtube-dl to attempt to download.
The naming convention matches Plex/Kodi/Emby/Jellyfin naming standards, ie:
Artist Name - Title (disambiguation).mkv
Q: Their is a lot of Music videos available online (youtube), yet the script cannot find them, what can I do?
Musicbrainz (https://musicbrainz.org) is a community managed database, while not perfect, it empowers users to be able to add/update/enchance it. Adding the music video (with url) to the relevant artist on Musicbrainz, will enable the script to automatically download the requested video. Best way to add, use Tools!
Updating Musicbrainz means you are helping the world! If everyone in the community spent a small amount of time updating the database with the Music Videos. Then everyone in the community would benefit from those updates. IE: User1 updates their favorite artist with Videos and User2 does the same thing for their favorite artist. Now both users can download music videos for both artists as a result of both putting in a little effort.
Musicbrainz is limited to 1 api query per second. So depending how many api requests are needed, it can take considerable time. The only way to speed this up is to use a mirror and in that case, you can increase the ratelimit to a desired setting. Linuxserver.io conviently provide a dockerized Musicbrainz mirror that you can self host for this purpose, for more info: https://hub.docker.com/r/linuxserver/musicbrainz/
See "Configure Local Media Assets Agent" on this page: https://support.plex.tv/articles/205568377-adding-local-artist-and-music-videos/
For information on Kodi, see here: https://kodi.wiki/view/Music_videos
- Install Tampermonkey browser extension (https://www.tampermonkey.net/)
- Add the following script to Tampermonkey (Youtube Importer): Quick Install Link (Source Repo Link)
- Navigate to the Music Video on youtube and use the "Add to Musicbrainz" button to start the process
- Follow the steps on the Musicbrainz site to finish adding the video. Please correct the title and disambiguation appropriately and make sure you have the video checkbox selected, and "Enter Edit"
Example:
source link: https://www.youtube.com/watch?v=ScNNfyq3d_w
Musicbrainz Page: