From c16b61db40f8376563a4d996b56e711fe02a5754 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Thu, 11 Jun 2026 10:48:38 -0400 Subject: [PATCH] [importers] Fix strange bug where celery version mismatches --- vrobbler/apps/scrobbles/importers/webdav.py | 4 ++-- vrobbler/apps/scrobbles/scrobblers.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/vrobbler/apps/scrobbles/importers/webdav.py b/vrobbler/apps/scrobbles/importers/webdav.py index e9f3cb3..d3c3f37 100644 --- a/vrobbler/apps/scrobbles/importers/webdav.py +++ b/vrobbler/apps/scrobbles/importers/webdav.py @@ -153,7 +153,7 @@ def scan_webdav_for_koreader( ) if update_etag_only: - if last_import and remote_etag: + if last_import and remote_etag and hasattr(last_import, "webdav_etag"): last_import.webdav_etag = remote_etag last_import.save(update_fields=["webdav_etag"]) logger.info( @@ -163,7 +163,7 @@ def scan_webdav_for_koreader( ) return 0 - if last_import and last_import.webdav_etag and remote_etag: + if last_import and getattr(last_import, "webdav_etag", None) and remote_etag: if last_import.webdav_etag == remote_etag: logger.info( "koreader stats file unchanged (ETag match)", diff --git a/vrobbler/apps/scrobbles/scrobblers.py b/vrobbler/apps/scrobbles/scrobblers.py index c9e0bf5..9fec95f 100644 --- a/vrobbler/apps/scrobbles/scrobblers.py +++ b/vrobbler/apps/scrobbles/scrobblers.py @@ -540,6 +540,7 @@ def email_scrobble_board_game( "playback_position_seconds": duration_seconds, "source": "BG Stats", "log": log_data, + "visibility": "private", } scrobble = None @@ -1152,7 +1153,7 @@ def web_scrobbler_scrobble_video_or_song( artist_name = data_dict.get("artist") track_name = data_dict.get("track") tracks = Track.objects.filter( - artist__name=data_dict.get("artist"), title=data_dict.get("track") + artist_fk__name=data_dict.get("artist"), title=data_dict.get("track") ) if tracks.count() > 1: logger.warning(