Last commit of the day, I guess
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
5c4bfa25c9
commit
ab12acd916
5 changed files with 73 additions and 43 deletions
scripts
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue