Skip to content

Commit

Permalink
fix: wrong songs downloaded when dots in song name
Browse files Browse the repository at this point in the history
  • Loading branch information
lfavole committed Jan 9, 2025
1 parent 3187f61 commit fc6827c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion songs_dl/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ def order_results(provider: str, best_items: list[Song], results: dict[str, list
ret: list[tuple[Song, float, list[float]]] = []

def normalize_title(title: str):
return re.sub(r"\bst(e?s?)\.?(\s+|$)", r"saint\1\2", title)
return re.sub(r"\bst(e?s?)(\s+|$)", r"saint\1\2", title.replace(".", ""))

for result in results[provider]:
# check for common word
Expand Down

0 comments on commit fc6827c

Please sign in to comment.