From 436bd77db4ce8fef1f91ab4693d029b722da5210 Mon Sep 17 00:00:00 2001 From: Mohammad Momeni Date: Wed, 13 Dec 2023 15:03:10 +0100 Subject: [PATCH] Give MusixMatch a higher priority (#18) --- README.md | 3 ++- syncedlyrics/__init__.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 63f49b2..defe9b5 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ syncedlyrics "SEARCH_TERM" | Flag | Description | | --- | --- | | `-o` | Path to save `.lrc` lyrics, default="{search_term}.lrc" | +| `-p` | Comma-separated list of providers to include in searching | | `-v` | Use this flag to show the logs | | `--allow-plain` | Return a plain text (not synced) lyrics if no LRC format was found | @@ -30,8 +31,8 @@ syncedlyrics.search("...", allow_plain_format=True, save_path="{search_term}_123 ``` ## Providers -- [Lrclib](https://github.com/tranxuanthang/lrcget/issues/2#issuecomment-1326925928) - [Musixmatch](https://www.musixmatch.com/) +- [Lrclib](https://github.com/tranxuanthang/lrcget/issues/2#issuecomment-1326925928) - [NetEase](https://music.163.com/) - [Megalobiz](https://www.megalobiz.com/) - ~~[Lyricsify](https://www.lyricsify.com/)~~ (Broken, should bypass Cloudflare protection) diff --git a/syncedlyrics/__init__.py b/syncedlyrics/__init__.py index 1cc0853..7beb316 100644 --- a/syncedlyrics/__init__.py +++ b/syncedlyrics/__init__.py @@ -29,7 +29,7 @@ def search( - `save_path`: Path to save `.lrc` lyrics. No saving if `None` - `providers`: A list of provider names to include in searching; loops over all the providers as soon as an LRC is found """ - _providers = [Lrclib(), Musixmatch(), NetEase(), Megalobiz()] + _providers = [Musixmatch(), Lrclib(), NetEase(), Megalobiz()] if providers: # Filtering the providers _providers = [p for p in _providers if p.__class__.__name__ in providers]