rakuri255 / UltraSinger

AI based tool to convert vocals lyrics and pitch from music to autogenerate Ultrastar Deluxe, Midi and notes. It automatic tapping, adding text, pitch vocals and creates karaoke files.
MIT License
287 stars 26 forks source link

index out of range when list is empty from musicbrainz #131

Closed Nithrom closed 6 months ago

Nithrom commented 7 months ago

Hi, i have a problem and i don't know whats wrong:

(.venv) C:\UltraSinger-main\src>py UltraSinger.py -i agapimu.mp3

[UltraSinger] [UltraSinger] UltraSinger Version: 0.0.9 [UltraSinger] [UltraSinger] Checking GPU support for tensorflow and pytorch. [UltraSinger] tensorflow - using cuda gpu. [UltraSinger] pytorch - using cuda gpu. [UltraSinger] full automatic mode [UltraSinger] Searching song in musicbrainz Traceback (most recent call last): File "C:\UltraSinger-main\src\UltraSinger.py", line 984, in main(sys.argv[1:]) File "C:\UltraSinger-main\src\UltraSinger.py", line 883, in main run() File "C:\UltraSinger-main\src\UltraSinger.py", line 336, in run ) = infos_from_audio_input_file() File "C:\UltraSinger-main\src\UltraSinger.py", line 714, in infos_from_audio_input_file (title_info, artist_info, year_info, genre_info) = get_music_infos(search_string) File "C:\UltraSinger-main\src\modules\musicbrainz_client.py", line 14, in get_music_infos artist = artists['artist-list'][0]['name'] IndexError: list index out of range

rakuri255 commented 7 months ago

Oh nice found. Musicbrainz retuns an empty list because it can find your song and UltraSinger expects an entry. Will fix that later.

As a short workaround you could rename your .mp3 to "artist - song.mp3"