[scrobbles] Remove source_id field

This commit is contained in:
2024-04-19 14:57:27 -04:00
parent 53657a9454
commit 20dd4d217a
7 changed files with 23 additions and 14 deletions

View File

@ -522,7 +522,6 @@ class Scrobble(TimeStampedModel):
# Metadata
source = models.CharField(max_length=255, **BNULL)
source_id = models.TextField(**BNULL)
scrobble_log = models.JSONField(**BNULL)
notes = models.TextField(**BNULL)
timezone = models.CharField(max_length=50, **BNULL)
@ -864,7 +863,7 @@ class Scrobble(TimeStampedModel):
.order_by("-timestamp")
.first()
)
source = scrobble_data["source"]
source = scrobble_data.get("source")
mtype = media.__class__.__name__
mopidy_status = scrobble_data.get("mopidy_status", None)