# releasedata['type'] = input("\n" + "_" * 100 + "\nGrouping is empty or has received an error, please enter manually (Album/Single/EP)\n")
# # If type is still not in accepted_types we ask for user input again and do not break loop until correct
# if releasedata['type'] not in accepted_types:
# while True:
# releasedata['type'] = input("\n" + "_" * 100 + "\nGrouping tag or release type argument did not return an album type, please enter manually (Album/Single/EP)\n")
releasedata['type'] = input("\n" + "_" * 100 + "\nGrouping is empty or has received an error, please enter manually (Album/Single/EP)\n")
# If type is still not in accepted_types we ask for user input again and do not break loop until correct
if releasedata['type'] not in accepted_types:
while True:
releasedata['type'] = input("\n" + "_" * 100 + "\nGrouping tag or release type argument did not return an album type, please enter manually (Album/Single/EP)\n")
if releasedata['type'] not in accepted_types:
continue
else:
break
# SM uses numbers for it's types
if releasedata['type'] == "Album":
releasedata['type'] = 0
elif releasedata['type'] == "Single":
releasedata['type'] = 2
else: # EP type
releasedata['type'] = 1
if releasetype:
releasedata['type'] = releasetype
else:
while(True):
input_releasetype = input("\n" + "_" * 100 + "\nEnter a number to choose the release type. \n1=Album\n2=Single\n3=EP\n")
if input_releasetype == "1":
releasedata["type"] = "Album"
break
elif input_releasetype == "2":
releasedata["type"] = "Single"
break
elif input_releasetype == "3":
releasedata["type"] = "EP"
break
print("Invalid choice.")
else:
releasedata['type'] = releasetype
releasedata['title'] = tags['ALBUM'][0]
releasedata['idols[]'] = unique_album_artists
@@ -542,7 +562,7 @@ def gatherdata(directory):
if title:
input_english_title = title
else:
input_english_title = input("\n" + "_" * 100 + "\nKorean/Japanese Detected. Please enter the romaji/english title:\n")
input_english_title = input("\n" + "_" * 100 + "\nPlease enter the romaji/english title:\n")
# Create new key called title_jp and assign the old title to it
releasedata['title_jp'] = releasedata['title']
# Replace title with the user input.
@@ -555,14 +575,14 @@ def gatherdata(directory):
if artists:
input_english_artist = artists
else:
input_english_artist = input("\n" + "_" * 100 + "\nKorean/Japanese Detected. Separate multiple main artists with \",\". Please enter the romaji/english artist name:\n")
input_english_artist = input("\n" + "_" * 100 + "\nPlease enter the romaji/english artist name. Separate multiple main artists with \",\".\n")
input_english_artist = [x.strip() for x in input_english_artist.split(',')]
input_english_contributing_artist = input("\n" + "_" * 100 + "\nSeparate multiple contributing artists with \",\". Press enter to skip. Please enter the romaji/english artist name:\n")
input_english_contributing_artist = input("\n" + "_" * 100 + "\nPlease enter the romaji/english artist name. Separate multiple contributing artists with \",\". Press enter to skip.\n")
if input_english_contributing_artist != "":
input_english_contributing_artist = [x.strip() for x in input_english_contributing_artist.split(',')]