Skip to content

Commit

Permalink
Finished with imports for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
matijakolaric committed Dec 10, 2024
1 parent f98f859 commit 8780bf0
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions music_publisher/data_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,13 @@ class DataImporter(object):
RECORDING_FIELDS = [
"id",
"recording_title",
"recording_title_suffix",
"version_title",
"version_title_suffix",
"release_date",
"duration",
"isrc",
"artist_last",
"artist_first",
"artist_isni",
# "artist_last",
# "artist_first",
# "artist_isni",
"record_label",
]
REFERENCE_FIELDS = ["id", "cmo"]
Expand Down Expand Up @@ -495,15 +493,7 @@ def process_row(self, row):
duration=recording.get("duration"),
release_date=recording.get("release_date"),
recording_title=recording.get("recording_title", ""),
recording_title_suffix=str(
recording.get("recording_title_suffix")
)[0]
in [True, "Y"],
version_title=recording.get("version_title", ""),
version_title_suffix=str(
recording.get("version_title_suffix")
)[0]
in [True, "Y"],
)
recording.clean_fields()
recording.clean()
Expand Down

0 comments on commit 8780bf0

Please sign in to comment.