diff --git a/ncmlyrics/app.py b/ncmlyrics/app.py index ed69a40..4ae430e 100644 --- a/ncmlyrics/app.py +++ b/ncmlyrics/app.py @@ -12,7 +12,7 @@ from rich.progress import Progress, TaskID from rich.theme import Theme from .api import NCMApi -from .enum import LinkType +from .type import LinkType from .error import ParseLinkError, UnsupportedLinkError from .lrc import Lrc from .object import NCMAlbum, NCMPlaylist, NCMTrack diff --git a/ncmlyrics/lrc.py b/ncmlyrics/lrc.py index 5c8def9..70f197c 100644 --- a/ncmlyrics/lrc.py +++ b/ncmlyrics/lrc.py @@ -6,7 +6,7 @@ from re import compile as compileRegex from typing import Generator, Iterable, Self from .constant import CONFIG_LRC_AUTO_MERGE, CONFIG_LRC_AUTO_MERGE_OFFSET -from .enum import LrcMetaType, LrcType +from .type import LrcMetaType, LrcType from .error import UnsupportedPureMusicTrackError from .object import NCMLyrics diff --git a/ncmlyrics/object.py b/ncmlyrics/object.py index 0829070..2f4b482 100644 --- a/ncmlyrics/object.py +++ b/ncmlyrics/object.py @@ -4,7 +4,7 @@ from typing import Self from httpx import Response -from .enum import LrcType +from .type import LrcType from .error import ObjectParseError __all__ = ["NCMTrack", "NCMAlbum", "NCMPlaylist", "NCMLyrics"] diff --git a/ncmlyrics/enum.py b/ncmlyrics/type.py similarity index 97% rename from ncmlyrics/enum.py rename to ncmlyrics/type.py index 20000b8..cb76e7f 100644 --- a/ncmlyrics/enum.py +++ b/ncmlyrics/type.py @@ -33,7 +33,7 @@ class LrcMetaType(StrEnum): Album = "al" Author = "au" Length = "length" - Author = "by" + LrcAuthor = "by" Offset = "offset" diff --git a/ncmlyrics/util.py b/ncmlyrics/util.py index bf2252f..3bc8647 100644 --- a/ncmlyrics/util.py +++ b/ncmlyrics/util.py @@ -6,7 +6,7 @@ from urllib.parse import urlparse as parseUrl from httpx import get as getHttp -from .enum import LinkType +from .type import LinkType from .error import ParseLinkError, UnsupportedLinkError __all__ = ["Link", "parseLink", "safeFileName"] diff --git a/tests/test_utils.py b/tests/test_utils.py index 2f97b97..e416535 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -1,7 +1,7 @@ from pathlib import Path from unittest import TestCase -from ncmlyrics.enum import LinkType +from ncmlyrics.type import LinkType from ncmlyrics.error import ParseLinkError, UnsupportedLinkError from ncmlyrics.object import NCMTrack from ncmlyrics.util import Link, parseLink, pickOutput, testExistTrackSource