Update code to remove a trialing _ from the artist name.
This commit is contained in:
@@ -2,6 +2,7 @@ import requests
|
||||
import os
|
||||
|
||||
def get_mb_id(artist_name, mb_confidence):
|
||||
artist_name = artist_name.strip('_')
|
||||
mb_url = f'https://musicbrainz.org/ws/2/artist?query=artist:%22{artist_name}%22&fmt=json'
|
||||
response = requests.get(mb_url)
|
||||
if response.status_code == 200:
|
||||
|
||||
Reference in New Issue
Block a user