Giter Site home page Giter Site logo

lrcdownloader's Introduction

Lyrics Downloader Lyrics Downloader is a Python script that automatically searches and downloads missing lyrics for music files in a specified folder. It uses a lyrics API to fetch the lyrics and saves them as .lrc files with the same naming as the corresponding music files. The script runs inside a Docker container, making it easy to deploy and run on any system.

Features Watches a specified folder for music files (supports .mp3, .wav, and .flac formats) Searches for missing lyrics using a configurable lyrics API Downloads and saves the lyrics as .lrc files with the same naming as the music files Runs continuously in the background, periodically checking for new music files Configurable API base URL and output directory Runs inside a Docker container for easy deployment and portability Prerequisites Docker installed on your system Usage Clone the repository:

git clone https://github.com/yaurora/lrcdownloader.git

Navigate to the project directory:

cd lrcdownloader

Build the Docker image:

docker build -t lrcdownloader .

Run the Docker container:

docker run -v /path/to/music/folder:/music -v /path/to/lyrics/output:/lyrics lrcdownloader

Replace /path/to/music/folder with the actual path to the folder containing your music files, and /path/to/lyrics/output with the path where you want to store the downloaded lyrics files.

The script will start watching the specified folder for music files and download the missing lyrics. The downloaded lyrics will be saved as .lrc files in the specified output directory. Configuration The script accepts the following command-line arguments:

folder_path: Path to the folder to watch for music files (default: /music) api_base_url: Base URL of the lyrics API (default: https://lrc.xms.mx/lyrics) output_dir: Directory to save the lyrics files (default: /lyrics) You can modify the default values in the Dockerfile's CMD instruction or pass the arguments when running the Docker container.

Customization To use a different lyrics API, update the api_base_url argument in the Dockerfile's CMD instruction or pass it as a command-line argument when running the Docker container. Recommended: https://github.com/HisAtri/LrcApi

If you want to support additional music file formats, modify the watch_folder function in the lyrics_watcher.py script to include the desired file extensions.

License This project is licensed under the MIT License.

lrcdownloader's People

Contributors

yaurora avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.