Skip to content

Commit

Permalink
simplified code that checks artist match
Browse files Browse the repository at this point in the history
  • Loading branch information
xnetcat committed Nov 6, 2022
1 parent 40db115 commit 6d8f27d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spotdl/providers/audio/ytmusic.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,7 @@ def order_results(

# check if the artist match is higher than 100%
# if it is, we set it to 100% (this shouldn't happen)
if artist_match > 100:
# print("! artist_match > 100 - setting to 100")
artist_match = 100
artist_match = min(artist_match, 100)

test_str1 = slug_result_name
test_str2 = slug_song_name if result["type"] == "song" else slug_song_title
Expand Down

0 comments on commit 6d8f27d

Please sign in to comment.