[scrobbles] Fix checking for signal completion
This commit is contained in:
@ -18,7 +18,7 @@ def update_charts_on_scrobble_complete(sender, instance, **kwargs):
|
||||
if instance.timestamp is None:
|
||||
return
|
||||
|
||||
if instance.media_type not in MEDIA_TYPES:
|
||||
if instance.media_type.lower() not in MEDIA_TYPES:
|
||||
return
|
||||
|
||||
_update_charts_for_timestamp(instance.user, instance.timestamp)
|
||||
@ -29,7 +29,7 @@ def update_charts_on_scrobble_delete(sender, instance, **kwargs):
|
||||
if instance.timestamp is None:
|
||||
return
|
||||
|
||||
if instance.media_type not in MEDIA_TYPES:
|
||||
if instance.media_type.lower() not in MEDIA_TYPES:
|
||||
return
|
||||
|
||||
_update_charts_for_timestamp(instance.user, instance.timestamp)
|
||||
|
||||
Reference in New Issue
Block a user