Skip to content

Commit

Permalink
Remove Megalobiz provider (#30)
Browse files Browse the repository at this point in the history
Seems the website is not up anymore
  • Loading branch information
moehmeni committed Mar 22, 2024
1 parent 42ba46b commit 7b921b1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ syncedlyrics.search("...", lang="de")
- [Deezer](https://deezer.com/)
- [Lrclib](https://github.com/tranxuanthang/lrcget/issues/2#issuecomment-1326925928)
- [NetEase](https://music.163.com/)
- [Megalobiz](https://www.megalobiz.com/)
- [Genius](https://genius.com) (For plain format)
~~- [Megalobiz](https://www.megalobiz.com/)~~ (Website not working anymore)
- ~~[Lyricsify](https://www.lyricsify.com/)~~ (Broken duo to Cloudflare protection)

Feel free to suggest more providers or make PRs to fix the broken ones.
Expand Down
3 changes: 1 addition & 2 deletions syncedlyrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import logging
from typing import List, Optional

from .providers import Deezer, Lrclib, Megalobiz, Musixmatch, NetEase, Genius
from .providers import Deezer, Lrclib, Musixmatch, NetEase, Genius
from .utils import is_lrc_valid, save_lrc_file

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -39,7 +39,6 @@ def search(
Lrclib(),
Deezer(),
NetEase(),
Megalobiz(),
Genius(),
]
if providers and any(providers):
Expand Down
2 changes: 1 addition & 1 deletion syncedlyrics/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def cli_handler():
"-p",
help="Providers to include in the searching (separated by space). Default: all providers",
default="",
choices=["deezer", "lrclib", "megalobiz", "musixmatch", "netease", "genius"],
choices=["deezer", "lrclib", "musixmatch", "netease", "genius"],
nargs="+",
type=str.lower,
)
Expand Down
7 changes: 3 additions & 4 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ def test_netease():
_test_provider("NetEase")


def test_megalobiz():
_test_provider("Megalobiz")


def test_musixmatch():
_test_provider("Musixmatch")

Expand All @@ -45,6 +41,9 @@ def test_deezer():
_test_provider("Deezer")


# def test_megalobiz():
# _test_provider("Megalobiz")

# TODO: fix
# def test_genius():
# _test_provider("Genius")

0 comments on commit 7b921b1

Please sign in to comment.