Skip to main content

No project description provided

Project description

lidarr-youtube-downloader

Look for missing tracks in your lidarr library and download them from youtube.

Docker Usage

docker run

The docker build need the .git directory, so be sure to clone the repository.

git clone https://github.com/dmzoneill/lidarr-youtube-downloader.git
docker build -t lyd .
# you need to be careful that the path matches the path that lidarr knows
docker run \
   -v /path/to/music:/path/to/music \
   -v /path/to/db/file:/path/to/db/file \   
   -e LIDARR_URL="http://HOST_IP:8686" \
   -e LIDARR_API_KEY="771de60596e946f6b3e5e6f5fb6fd729" \
   -e LIDARR_DB="/path/to/lidarr/lidarr.db" \
   -e LIDARR_MUSIC_PATH="/music" \
   --name lyd lyd

Local Usage

Requirements

dnf/apt install ffmpeg
pip3 install eyed3 youtube-search-python yt-dlp
chmod +x /usr/bin/yt-dlp

Install

pip3 install lidarr-youtube-downloader

Config

export LIDARR_URL="http://127.0.0.1:8686"
export LIDARR_API_KEY="771de60596e946f6b3e5e6f5fb6fd729" # your key
export LIDARR_DB="/path/to/lidarr/lidarr.db"
export LIDARR_MUSIC_PATH="/music"

Usage

lyd

Sample output

Album: 34/545   Track: 71/226
================================================================================

    Path           : /music/The Beatles
    Artist         : The Beatles
    Album          : The Beatles
    Track          : Norwegian Wood (This Bird Has Flown)
    Genre          : Acoustic Rock
    Date           : 1988
    CD Count       : 16
    CD No          : 6
    Track No       : 2/12

    Youtube search
    ========================================
        
        Best title: The Beatles - Norwegian Wood (This Bird Has Flown)
        Best match: 1.0
        
        Selected https://www.youtube.com/watch?v=W15_1kE08Gc

    yt-dlp
    ========================================

        yt-dlp
            --no-progress
            -x
            --audio-format mp3 "https://www.youtube.com/watch?v=W15_1kE08Gc"
            -o 
            "/music/The Beatles/The Beatles/The Beatles - The Beatles - Norwegian Wood (This Bird Has Flown).mp3"


        Downloaded successfully

        [youtube] W15_1kE08Gc: Downloading webpage
        [youtube] W15_1kE08Gc: Downloading MPD manifest
        [download] Destination: /music/The Beatles/The Beatles/The Beatles - The Beatles - Norwegian Wood (This Bird Has Flown).mp3
        [download] Download completed
        [ffmpeg] Correcting container in "/music/The Beatles/The Beatles/The Beatles - The Beatles - Norwegian Wood (This Bird Has Flown).mp3"
        [ffmpeg] Post-process file /music/The Beatles/The Beatles/The Beatles - The Beatles - Norwegian Wood (This Bird Has Flown).mp3 exists, skipping

    Ffmpeg
    ========================================

        ffmpeg -i "/music/The Beatles/The Beatles/The Beatles - The Beatles - Norwegian Wood (This Bird Has Flown).mp3"
            -metadata artist="The Beatles"
            -metadata year="1988"
            -metadata title="Norwegian Wood (This Bird Has Flown)"
            -metadata album="The Beatles"
            -metadata track="2"
            -metadata genre="Acoustic Rock"
            -hide_banner
            -loglevel error
            "/music/The Beatles/The Beatles/The Beatles - The Beatles - Norwegian Wood (This Bird Has Flown).mp3"

        ffmpeg added mp3 tag      

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lidarr_youtube_downloader-0.3.32.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

lidarr_youtube_downloader-0.3.32-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file lidarr_youtube_downloader-0.3.32.tar.gz.

File metadata

File hashes

Hashes for lidarr_youtube_downloader-0.3.32.tar.gz
Algorithm Hash digest
SHA256 560deaea1d03931fe6dfc56c6ca9b295eff37125acbb5be9f0fab96b9ddb8b5d
MD5 be036fa76caac55b9019d6316c14568b
BLAKE2b-256 b25fc010c58c19adfb09cff01ca751842d0b55f5c26d52047276d755e3722fbf

See more details on using hashes here.

File details

Details for the file lidarr_youtube_downloader-0.3.32-py3-none-any.whl.

File metadata

File hashes

Hashes for lidarr_youtube_downloader-0.3.32-py3-none-any.whl
Algorithm Hash digest
SHA256 c4d16a0835de4c845af6fb6dcfa8df0e4abe49fbb10e665d232eacea32a0c111
MD5 84b2fefc0cdf4061980b000de613afb9
BLAKE2b-256 8fab7beefd9d7b4e802e3716a3289efdedb2569b3a295c085f938a5588e5f238

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page