From 7d471056c1f2f6773adae9c2b79bffda82dec641 Mon Sep 17 00:00:00 2001 From: Micah Morrison Date: Thu, 11 Mar 2021 20:37:44 -0500 Subject: [PATCH] Fix meeb/tubesync#90: Match media on source and id --- tubesync/sync/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubesync/sync/tasks.py b/tubesync/sync/tasks.py index 7fe2f27..9b69f0a 100644 --- a/tubesync/sync/tasks.py +++ b/tubesync/sync/tasks.py @@ -175,7 +175,7 @@ def index_source_task(source_id): # Video has no unique key (ID), it can't be indexed continue try: - media = Media.objects.get(key=key) + media = Media.objects.get(key=key, source=source) except Media.DoesNotExist: media = Media(key=key) media.source = source