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 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:
if releasedata['type'] not in accepted_types:
while True:
while True:
releasedata['type'] = input("\n" + "_" * 100 + "\nGrouping tag did not return an album type, please enter manually (Album/Single/EP)\n")
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:
if releasedata['type'] not in accepted_types:
continue
continue
@@ -511,7 +520,10 @@ def gatherdata(directory):
print("Title/Artist Language:\n")
print("Title/Artist Language:\n")
print(f"{releasedata['title']} < English = {en}")
print(f"{releasedata['title']} < English = {en}")
if en == False:
if en == False:
input_english_title = input("\n" + "_" * 100 + "\nKorean/Japanese Detected. Please enter the romaji/english title:\n")
if title:
input_english_title = title
else:
input_english_title = input("\n" + "_" * 100 + "\nKorean/Japanese Detected. Please enter the romaji/english title:\n")
# Create new key called title_jp and assign the old title to it
# Create new key called title_jp and assign the old title to it
releasedata['title_jp'] = releasedata['title']
releasedata['title_jp'] = releasedata['title']
# Replace title with the user input.
# Replace title with the user input.
@@ -521,11 +533,17 @@ def gatherdata(directory):
if debug:
if debug:
print(f"{releasedata['idols[]']} < English = {en}")
print(f"{releasedata['idols[]']} < English = {en}")
if en == False:
if en == False:
input_english_artist = input("\n" + "_" * 100 + "\nKorean/Japanese Detected. Separate multiple main artists with \",\". Please enter the romaji/english artist name:\n")
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 = [x.strip() for x in input_english_artist.split(',')]
input_english_artist = [x.strip() for x in input_english_artist.split(',')]
releasedata['idols[]'] = input_english_artist
releasedata['idols[]'] = input_english_artist
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 + "\nSeparate multiple contributing artists with \",\". Press enter to skip. Please enter the romaji/english artist name:\n")
if input_english_contributing_artist != "":
if input_english_contributing_artist != "":
input_english_contributing_artist = [x.strip() for x in input_english_contributing_artist.split(',')]
input_english_contributing_artist = [x.strip() for x in input_english_contributing_artist.split(',')]