mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-27 01:16:36 +00:00
Fix meeb/tubesync#90: Match media on source and id
This commit is contained in:
parent
119493c181
commit
7d471056c1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user