Tubifarry is a versatile plugin for Lidarr that enhances your music library by fetching metadata from Spotify and enabling direct music downloads from YouTube. While it is not explicitly a Spotify-to-YouTube downloader, it leverages the YouTube API to seamlessly integrate music downloads into your Lidarr setup. Built on the foundation of trevTV's projects, Tubifarry also supports Slskd, the Soulseek client, as both an indexer and downloader, allowing you to tap into the vast music collection available on the Soulseek network. π οΈ
Additionally, Tubifarry supports fetching soundtracks from Sonarr (series) and Radarr (movies) and adding them to Lidarr using the Arr-Soundtracks import list feature. This makes it easy to manage and download soundtracks for your favorite movies and TV shows. π¬π΅
- Installation π
- Soulseek (Slskd) Setup π§
- YouTube Downloader Setup π₯
- Fetching Soundtracks π¬π΅
- Queue Cleaner π§Ή
- Codec Tinker ποΈ
- Troubleshooting π οΈ
To use Tubifarry, ensure your Lidarr setup is on the plugins
branch. Follow the steps below to get started.
For Docker users using Hotio's image, use the following path:
image: ghcr.io/hotio/lidarr:pr-plugins
To switch to the Plugins Branch:
- Open Lidarr and navigate to
System -> General
. - Scroll down to the Branch section.
- Replace "master" with "plugins".
- Force an update check to update Lidarr to the plugins branch.
- In Lidarr, go to
System -> Plugins
. - Paste
https://github.com/TypNull/Tubifarry
into the GitHub URL box and click Install.
Tubifarry supports Slskd, the Soulseek client, as both an indexer and downloader. Follow the steps below to configure it.
- Navigate to
Settings -> Indexers
and click Add. - Select
Slskd
from the list of indexers. - Configure the following settings:
- URL: The URL of your Slskd instance (e.g.,
http://localhost:5030
). - API Key: The API key for your Slskd instance (found in Slskd's settings under 'Options').
- Include Only Audio Files: Enable to filter search results to audio files only (beta).
- URL: The URL of your Slskd instance (e.g.,
- Go to
Settings -> Download Clients
and click Add. - Select
Slskd
from the list of download clients. - Set the download path where downloaded files will be downloaded.
Please be aware that YouTube often blocks Tubifarry as a bot. We are currently waiting for external updates. Logging in and the YouTube-only indexer are disabled for now. If login is necessary, please revert to versions earlier than 1.6.0. We appreciate your patience and understanding during this time.
Tubifarry allows you to download music directly from YouTube. Follow the steps below to configure the YouTube downloader.
- Navigate to
Settings -> Indexers
and click Add. - In the modal, select
Tubifarry
(located under Other at the bottom).
- Go to
Settings -> Download Clients
and click Add. - Select
Youtube
from the list of download clients. - Set the download path and adjust other settings as needed.
- Optional: If using FFmpeg, ensure the FFmpeg path is correctly configured.
-
FFmpeg: FFmpeg can be used to extract audio from downloaded files, which are typically embedded in MP4 containers. If you choose to use FFmpeg, ensure it is installed and accessible in your system's PATH or the specified FFmpeg path. If not, the plugin does attempt to download it automatically during setup. Without FFmpeg, songs will be downloaded in their original format, which may not require additional processing.
Important Note: If FFmpeg is not used, Lidarr may incorrectly interpret the MP4 container as corrupt. While FFmpeg usage is recommended, it is not strictly necessary. However, to avoid potential issues, you can choose to extract audio without re-encoding, but this may lead to better compatibility with Lidarr.
-
Max Audio Quality: Tubifarry supports a maximum audio quality of 256kb/s AAC for downloaded files through YouTube. While most files are in 128kbps AAC by default, they can be converted to higher-quality formats like AAC, Opus or MP3v2 if FFmpeg is used.
What is AAC?
AAC (Advanced Audio Coding) is a high-quality audio format that offers better sound quality than MP3 at similar bitrates. It is commonly used in MP4 containers, making it a versatile and widely supported format.Note: For higher-quality audio (e.g., 256kb/s), you need a YouTube Premium subscription.
Tubifarry also supports fetching soundtracks from Sonarr (for TV series) and Radarr (for movies) and adding them to Lidarr using the Arr-Soundtracks import list feature. This allows you to easily manage and download soundtracks for your favorite movies and TV shows.
To enable this feature:
-
Set Up the Import List:
- Navigate to
Settings -> Import Lists
in Lidarr. - Add a new import list and select the option for Arr-Soundtracks.
- Configure the settings to match your Sonarr and Radarr instances.
- Provide a cache path to store responses from MusicBrainz for faster lookups.
- Navigate to
-
Enjoy Soundtracks:
- Once configured, Tubifarry will automatically fetch soundtracks from your Sonarr and Radarr libraries and add them to Lidarr for download and management.
The Queue Cleaner automatically processes items in your Lidarr queue that have failed to import. It ensures your library stays organized by handling failed imports based on your preferences.
-
Key Options:
- Blocklist: Choose to remove, blocklist, or both for failed imports.
- Rename: Automatically rename album folders and tracks using available metadata.
- Clean Imports: Decide when to cleanβwhen tracks are missing, metadata is incomplete, or always.
- Retry Finding Release: Automatically retry searching for a release if the import fails.
-
How to Enable:
- Navigate to
Settings -> Connect
in Lidarr. - Add a new connection and select the Queue Cleaner.
- Configure the settings to match your needs.
- Navigate to
Codec Tinker is a feature in Tubifarry that lets you convert audio files between different formats using FFmpeg. Whether you want to standardize your library or optimize files for specific devices, Codec Tinker makes it easy to tinker with your audio formats.
- Go to
Settings > Metadata
in Lidarr. - Open the Codec Tinker MetadataConsumer.
- Toggle the switch to enable the feature.
-
Set Default Conversion Settings
-
Target Format:
Choose the default format for conversions (e.g., FLAC, Opus, MP3). -
Custom Conversion Rules:
Define rules likewavTOflac
orAAC_to_MP3
for specific format conversions.
Note: Lossy formats (e.g., MP3, AAC) cannot be converted to non-lossy formats (e.g., FLAC, WAV).
-
-
Enable Format-Specific Conversion
Toggle checkboxes to enable conversion for specific formats:- Convert MP3, Convert AAC, Convert FLAC, etc.
-
Slskd Download Path Permissions:
Ensure Lidarr has read/write access to the Slskd download path. Verify folder permissions and confirm the user running Lidarr has the necessary access. For Docker setups, double-check that the volume is correctly mounted and permissions are properly configured. -
FFmpeg Issues (Optional):
If youβre using FFmpeg and songs fail to process, ensure FFmpeg is installed correctly and accessible in your systemβs PATH. If issues persist, try reinstalling FFmpeg or downloading it manually. -
Metadata Issues:
If metadata isnβt being added to downloaded files, confirm the files are in a supported format. If using FFmpeg, check that itβs extracting audio to compatible formats like AAC embedded in MP4 containers. Review debug logs for further details. -
No Release Found:
If no release is found, YouTube may flag the plugin as a bot. To avoid this and access higher-quality audio, log in using cookies: -
No Lyrics Imported:
To save.lrc
files (lyric files), navigate to Media Management > Advanced Settings > Import Extra Files and addlrc
to the list of supported file types. This ensures lyric files are imported and saved alongside your music files. -
Unsupported Formats: Verify custom rules and target formats.
Special thanks to trevTV for laying the groundwork with his plugins. Additionally, thanks to IcySnex for providing the YouTube API. π
If you'd like to contribute to Tubifarry, feel free to open issues or submit pull requests on the GitHub repository. Your feedback and contributions are highly appreciated!
Tubifarry is licensed under the MIT License. See the LICENSE file for more details.
Enjoy seamless music downloads with Tubifarry! π§