Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmozhijin committed Mar 27, 2024
1 parent 1f41ef2 commit 47c8399
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LDDC.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: Copyright (c) 2024 沉默の金
__version__ = "v0.6.0"
__version__ = "v0.6.1"
import logging
import os
import sys
Expand Down
4 changes: 3 additions & 1 deletion utils/lyrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ def lrc2list(lrc: str, source: Source | None = None) -> tuple[dict, list]:
lrc_list[-1][2].append((line_start_time, line_end_time, line_content))
continue

if source == Source.NE and len([word_content for m, s, ms, word_content in wrods_split_contents if word_content != ""]) == 1 and wrods_split_contents[-1][3] != "":
if (source == Source.NE and
len([word_content for m, s, ms, word_content in wrods_split_contents if word_content != ""]) == 1 and
wrods_split_contents[-1][3] != ""):
# 如果转换的是网易云歌词且这一行有开头有几个连在一起的时间戳表示这几个时间戳的行都是这个歌词
line_content = wrods_split_contents[-1][3]
lrc_list[-1][2].append((line_start_time, line_end_time, line_content))
Expand Down

0 comments on commit 47c8399

Please sign in to comment.