Fix meeb/tubesync#90: Match media on source and id

This commit is contained in:
Micah Morrison 2021-03-11 20:37:44 -05:00
parent 119493c181
commit 7d471056c1
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ def index_source_task(source_id):
# Video has no unique key (ID), it can't be indexed # Video has no unique key (ID), it can't be indexed
continue continue
try: try:
media = Media.objects.get(key=key) media = Media.objects.get(key=key, source=source)
except Media.DoesNotExist: except Media.DoesNotExist:
media = Media(key=key) media = Media(key=key)
media.source = source media.source = source