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
|
import api_calls
|
||||||
|
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
if (os.path.exists('config.ini')):
|
if os.path.exists('config.ini'):
|
||||||
conf_path = 'config.ini'
|
conf_path = 'config.ini'
|
||||||
else:
|
else:
|
||||||
conf_path = os.path.join(os.path.expanduser("~"), ".local/share/get_artist_art/config.ini")
|
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()
|
dir_list.sort()
|
||||||
for artist in dir_list:
|
for artist in dir_list:
|
||||||
artist_path = os.path.join(music_path, artist)
|
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(dir_activities.has_artist_art(artist_path))
|
||||||
print(str(count) + ": " + artist.strip('_'))
|
print(str(count) + ": " + artist.strip('_'))
|
||||||
try:
|
try:
|
||||||
@ -35,7 +35,7 @@ for artist in dir_list:
|
|||||||
if found_status:
|
if found_status:
|
||||||
while not ftv_response:
|
while not ftv_response:
|
||||||
ftv_response = api_calls.get_image(mb_id, ftv_api_key, artist_path)
|
ftv_response = api_calls.get_image(mb_id, ftv_api_key, artist_path)
|
||||||
print(ftv_response)
|
# print(ftv_response)
|
||||||
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