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
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
sudo curl https://youtube-dl.org/downloads/latest/youtube-dl -o /usr/bin/youtube-dl
chmod +x /usr/bin/youtube-dl
pip3 install eyed3 youtube-search-python
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
pip3 install lidarr-youtube-downloader
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
Youtube-dl
========================================
youtube-dl
--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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for lidarr_youtube_downloader-0.3.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34a15ab0e7600c56e4f50553943e6c2847293b40abfbf01ade87289b8b023fab |
|
MD5 | 3212c91704e9874f7aa093a56455f6e7 |
|
BLAKE2b-256 | 1b2ff79e2e280e4118a2c4c87a4f8190d2463c6faf0b566c02859890abd09253 |
Close
Hashes for lidarr_youtube_downloader-0.3.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8d864f5e854ac1d661fc93746e22cf69611b192e15e0e94513dc484f7c6a43d |
|
MD5 | 7892101b5bdc0409d9a7da93acefe7f2 |
|
BLAKE2b-256 | e0862038f2340e06b51541eaa1e4ef9710056b151b3180bd637b0dc2c4755f5c |