Update README.md
This commit is contained in:
parent
c2fbc08c3b
commit
6110146908
28
README.md
28
README.md
@ -30,19 +30,19 @@ You can install the required Python packages using:
|
||||
|
||||
```bash
|
||||
pip install requests
|
||||
|
||||
```
|
||||
📼 External Tools
|
||||
|
||||
yt-dlp: YouTube downloader for audio/video.
|
||||
|
||||
Install via pip (recommended):
|
||||
|
||||
```bash
|
||||
pip install -U yt-dlp
|
||||
|
||||
```
|
||||
Or install system-wide:
|
||||
|
||||
```bash
|
||||
sudo apt install yt-dlp # On Debian/Ubuntu
|
||||
|
||||
```
|
||||
⚙️ Configuration
|
||||
|
||||
Lidarr Setup
|
||||
@ -57,29 +57,29 @@ sudo apt install yt-dlp # On Debian/Ubuntu
|
||||
export LIDARR_API_KEY="your-lidarr-api-key"
|
||||
|
||||
Or run inline:
|
||||
|
||||
```bash
|
||||
LIDARR_API_KEY="your-lidarr-api-key" ./musicfetch.py "Artist - Track"
|
||||
|
||||
```
|
||||
🧑💻 Usage
|
||||
🔉 Download by Search Term
|
||||
|
||||
```bash
|
||||
./musicfetch.py "Artist - Track"
|
||||
|
||||
```
|
||||
Example:
|
||||
|
||||
```bash
|
||||
./musicfetch.py "ODESZA - Bloom"
|
||||
|
||||
```
|
||||
If Lidarr finds the artist and album, it will trigger a download in Lidarr. If not, the song will be downloaded via yt-dlp using a YouTube search.
|
||||
📺 Download by URL
|
||||
|
||||
```bash
|
||||
./musicfetch.py "https://www.youtube.com/watch?v=xxxxxxxxxxx"
|
||||
|
||||
```
|
||||
The script extracts metadata from the video and organizes the file under the artist's folder.
|
||||
📁 Output Structure
|
||||
|
||||
Music is saved in:
|
||||
|
||||
/media/music/
|
||||
/base_dir/
|
||||
├── Artist Name/
|
||||
│ ├── Album Name/ (if found via Lidarr)
|
||||
│ └── youtube/ (if fallback used)
|
||||
|
Loading…
x
Reference in New Issue
Block a user