Cleanup main file.
Removed redundent formatting code.
This commit is contained in:
parent
b15145426b
commit
dad5a3709d
@ -7,7 +7,7 @@ import dir_activities
|
||||
import api_calls
|
||||
|
||||
config = configparser.ConfigParser()
|
||||
if (os.path.exists('config.ini')):
|
||||
if os.path.exists('config.ini'):
|
||||
conf_path = 'config.ini'
|
||||
else:
|
||||
conf_path = os.path.join(os.path.expanduser("~"), ".local/share/get_artist_art/config.ini")
|
||||
@ -23,7 +23,7 @@ dir_list = dir_activities.get_all(music_path)
|
||||
dir_list.sort()
|
||||
for artist in dir_list:
|
||||
artist_path = os.path.join(music_path, artist)
|
||||
if (not(dir_activities.has_artist_art(artist_path))):
|
||||
if not(dir_activities.has_artist_art(artist_path)):
|
||||
# print(dir_activities.has_artist_art(artist_path))
|
||||
print(str(count) + ": " + artist.strip('_'))
|
||||
try:
|
||||
@ -35,7 +35,7 @@ for artist in dir_list:
|
||||
if found_status:
|
||||
while not ftv_response:
|
||||
ftv_response = api_calls.get_image(mb_id, ftv_api_key, artist_path)
|
||||
print(ftv_response)
|
||||
# print(ftv_response)
|
||||
else:
|
||||
print(f"{artist} returned no results.")
|
||||
# api_requests.get_art(artist_image, artist, music_path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user