1
Fork 0

Last commit of the day, I guess

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
prescientmoon 2024-06-23 04:20:32 +02:00
parent 5c4bfa25c9
commit ab12acd916
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
5 changed files with 73 additions and 43 deletions
scripts

View file

@ -54,9 +54,12 @@ def import_charts_from_csv():
for title, entry in songs.items():
artist = None
if title.startswith("Quon"):
artist = title[6:-1]
title = "Quon"
# Problematic titles that can belong to multiple artists
for possibility in ["Quon", "Gensis"]:
if title.startswith(possibility):
artist = title[len(possibility) + 2 : -1]
title = possibility
break
row = conn.execute(
"""
@ -96,3 +99,6 @@ subcommand = sys.argv[2]
if command == "import" and subcommand == "charts":
import_charts_from_csv()
&song_title
if command == "export" and subcommand == "jackets":
import_charts_from_csv()