Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmozhijin committed Feb 18, 2024
1 parent a10eacf commit 55e28a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lyrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ def find_closest_match(list1: list, list2: list, source: str | None = None) -> d
list22 = [item for item in list2 if item[1] != ""]
if len(list12) == len(list22):
logging.info("qm 匹配方法")
for i, value in enumerate(list1):
merged_dict[value] = list2[i]
for i, value in enumerate(list12):
merged_dict[value] = list22[i]
return merged_dict
list12, list22 = None, None

Expand Down Expand Up @@ -142,6 +142,7 @@ def find_closest_match(list1: list, list2: list, source: str | None = None) -> d

class Lyrics(dict):
def __init__(self, info: dict) -> None:
logging.info(f"初始化{info}")
self.source = info["source"]
self.orig_type = None
self.title = info['title']
Expand Down

0 comments on commit 55e28a5

Please sign in to comment.