Skip to content

Commit

Permalink
fix: nome do uploader duplicado no check de similaridade de músicas n…
Browse files Browse the repository at this point in the history
…o resolve_track
  • Loading branch information
zRitsu committed Oct 10, 2024
1 parent 3f2e7e7 commit c0f21dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/music/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3127,8 +3127,8 @@ async def resolve_track(self, track: PartialTrack):
if not has_exclude_tags and any(tag for tag in exclude_tags if tag.lower() in t.title.lower()):
continue

track_check = track.title if track.info["sourceName"] not in ("youtube", "soundcloud") else f"{track.author} - {track.title}"
t_check = t.title if t.info["sourceName"] not in ("youtube", "soundcloud") else f"{t.author} - {t.title}"
track_check = track.title if track.info["sourceName"] not in ("youtube", "soundcloud") else f"{track.author} - {track.single_title}"
t_check = t.title if t.info["sourceName"] not in ("youtube", "soundcloud") else f"{t.author} - {t.single_title}"

if fuzz.token_sort_ratio(track_check, t_check) < 70:
continue
Expand Down

0 comments on commit c0f21dd

Please sign in to comment.