-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from yogeshwaran01/v1.3-patch
V1.3 patch
- Loading branch information
Showing
10 changed files
with
74 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
disable=too-many-arguments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,17 +5,17 @@ | |
""" | ||
|
||
__package__ = "lyricy" | ||
__description__ = ( | ||
"A command line lyrics utility tool which search and add lyrics to your offline songs" | ||
) | ||
__description__ = "A command line lyrics utility tool \ | ||
which search and add lyrics to your offline songs" | ||
__url__ = "https://github.com/yogeshwaran01/lyricy" | ||
__version__ = "1.2" | ||
__version__ = "1.3" | ||
__author__ = "YOGESHWARAN R <[email protected]>" | ||
__license__ = "MIT License" | ||
__copyright__ = "Copyright 2022 Yogeshwaran R" | ||
|
||
|
||
from enum import Enum | ||
from typing import List | ||
|
||
import music_tag | ||
|
||
|
@@ -55,7 +55,7 @@ def add_to_track(self, path: str): | |
|
||
class Lyricy: | ||
@staticmethod | ||
def search(query: str, provider=Providers.MEGALOBIZ) -> list[Lyrics]: | ||
def search(query: str, provider=Providers.MEGALOBIZ) -> List[Lyrics]: | ||
"""Search for a lyrics for given Query""" | ||
if provider == Providers.RCLYRICSBAND: | ||
r = RcLyricsBand.search_lyrics(query) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,29 +6,24 @@ | |
requirements = fh.read() | ||
|
||
setup( | ||
name='lyricy', | ||
version='1.2', | ||
author='Yogeshwaran R', | ||
author_email='[email protected]', | ||
description='A command line lyrics utitly tool which \ | ||
search and add lyrics to your offline songs.', | ||
name="lyricy", | ||
version="1.3", | ||
author="Yogeshwaran R", | ||
author_email="[email protected]", | ||
description="A command line lyrics utility tool which \ | ||
search and add lyrics to your offline songs.", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
license='MIT', | ||
url='https://github.com/yogeshwaran01/lyricy', | ||
license="MIT", | ||
url="https://github.com/yogeshwaran01/lyricy", | ||
download_url="https://github.com/yogeshwaran01/lyricy/archive/master.zip", | ||
packages=find_packages(), | ||
entry_points={ | ||
'console_scripts': [ | ||
'lyricy=lyricy.cli:cli' | ||
] | ||
}, | ||
entry_points={"console_scripts": ["lyricy=lyricy.cli:cli"]}, | ||
classifiers=( | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
), | ||
keywords='python package lyrics lrc yogeshwaran01 songs', | ||
keywords="python package lyrics lrc yogeshwaran01 songs", | ||
install_requires=requirements, | ||
|
||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
TEST_QUERY_1 = "wasted" | ||
FILE_PATH_1 = "wasted.lrc" | ||
|
||
TEST_QUERY_2 = "beast mode" | ||
FILE_PATH_2 = "beast_mode.lrc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters