Skip to content

Commit

Permalink
fix: duplicated tracks (issue #8)
Browse files Browse the repository at this point in the history
  • Loading branch information
mewforest committed Jun 13, 2022
1 parent fa18a73 commit af56698
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vk-music-import.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def main():
parsed_row = re.match(r"^([^-—]+)[-—]([^\r\n]+)", text_line)
if parsed_row is not None:
tracklist.append((parsed_row.group(1).strip(), parsed_row.group(2).strip()))
break
parsed_row = re.match(r"^(\S+)\s(.+)", text_line)
if parsed_row is not None:
track_info = (parsed_row.group(1).strip(), parsed_row.group(2).strip(),)
Expand Down

0 comments on commit af56698

Please sign in to comment.