浏览代码

Trying again with Jellyfin

Colin Powell 1 年之前
父节点
当前提交
9eeb708a51
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      vrobbler/apps/scrobbles/models.py

+ 4 - 2
vrobbler/apps/scrobbles/models.py

@@ -685,8 +685,10 @@ class Scrobble(TimeStampedModel):
         # but we also don't want to create new videos, so in
         # this special case, we allow jellyfin resumed status
         # to allow a scrobble to be updated.
-        # jellyfin_in_progress = scrobble_data.get("jellyfin_status", None)
-        if scrobble and (scrobble.can_be_updated):  # or jellyfin_in_progress):
+        jellyfin_in_progress = scrobble_data.get("jellyfin_status", None)
+        if scrobble and (
+            scrobble.can_be_updated or jellyfin_in_progress == "resumed"
+        ):
             source = scrobble_data["source"]
             mtype = media.__class__.__name__
             logger.info(