Merge pull request #95 from micahmo/main

Fix meeb/tubesync#90: Match media on source and id
This commit is contained in:
meeb 2021-03-13 23:05:45 +11:00 committed by GitHub
commit a29a92893f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
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