Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.
RandomNinjaAtk edited this page Aug 4, 2020 · 1 revision

Information on Music Video Support

Feature:

Download Music Videos Automatically using "youtube-dl" for use with Plex/Kodi/Emby/Jellyfin

Plex Example:

Q&A:

Q: How are videos found?

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.

Q: How are videos named?

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!

Q: Why should I spend time updating Musicbrainz?

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.

Q: Why does it seem slow to process artists for music videos?

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/

Q: How do I import the Music Videos into Plex:

See "Configure Local Media Assets Agent" on this page: https://support.plex.tv/articles/205568377-adding-local-artist-and-music-videos/

Q: How do I import the Music Videos into kodi:

For information on Kodi, see here: https://kodi.wiki/view/Music_videos

TOOLS:

Adding Music Videos from YouTube the easy way:

  1. Install Tampermonkey browser extension (https://www.tampermonkey.net/)
  2. Add the following script to Tampermonkey (Youtube Importer): Quick Install Link (Source Repo Link)
  3. Navigate to the Music Video on youtube and use the "Add to Musicbrainz" button to start the process
  4. 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: