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
File details
Details for the file lidarr_youtube_downloader-0.3.16.tar.gz
.
File metadata
- Download URL: lidarr_youtube_downloader-0.3.16.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01917f153736fde4f199cb565b5ba3b60d962a7977c1b7c9d29fbd3f6aa950ee |
|
MD5 | 801269fbf89e657417dfd806d089cc3e |
|
BLAKE2b-256 | 48790b27c2e6b0fc4e9e3b61a341ef05b172fc65069c4aed3d2f5c812bd674ac |
File details
Details for the file lidarr_youtube_downloader-0.3.16-py3-none-any.whl
.
File metadata
- Download URL: lidarr_youtube_downloader-0.3.16-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b5fbf963c2367777eee0c7ba2fae2d613b173bc16c1e25806af1397d2cfabe8 |
|
MD5 | 7f5e1b2623d9a57bfe8912f4323a2cb5 |
|
BLAKE2b-256 | 9da150cfcc9d67850dfb3c664db3883e7c2040fcd9daa985e74b700839ccca36 |