Change to use python3
Had been set to python3.12 for the use of a specific library. This is no longer necessary as that library is not being used.
This commit is contained in:
parent
3eb993e3c4
commit
297e7876f2
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python3.12
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import configparser
|
import configparser
|
||||||
import os
|
import os
|
||||||
@ -16,14 +16,15 @@ count = 1
|
|||||||
dir_list = dir_activities.get_all(music_path)
|
dir_list = dir_activities.get_all(music_path)
|
||||||
dir_list.sort()
|
dir_list.sort()
|
||||||
for artist in dir_list:
|
for artist in dir_list:
|
||||||
if (not(dir_activities.has_artist_art(artist))):
|
artist_path = os.path.join(music_path, artist)
|
||||||
print(dir_activities.has_artist_art(artist))
|
if (not(dir_activities.has_artist_art(artist_path))):
|
||||||
|
print(dir_activities.has_artist_art(artist_path))
|
||||||
print(str(count) + ": " + artist)
|
print(str(count) + ": " + artist)
|
||||||
try:
|
try:
|
||||||
found_status, mb_id = api_calls.get_mb_id(artist, mb_confidence)
|
found_status, mb_id = api_calls.get_mb_id(artist, mb_confidence)
|
||||||
# print("Getting ", artist_image)
|
# print("Getting ", artist_image)
|
||||||
if found_status:
|
if found_status:
|
||||||
artist_image = api_calls.get_image(mb_id, ftv_api_key, os.path.join(music_path, artist))
|
artist_image = api_calls.get_image(mb_id, ftv_api_key, artist_path)
|
||||||
else:
|
else:
|
||||||
print(f"{artist} returned no results.")
|
print(f"{artist} returned no results.")
|
||||||
# api_requests.get_art(artist_image, artist, music_path)
|
# api_requests.get_art(artist_image, artist, music_path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user