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
|
# 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
|
||||||
|
|
Loading…
Reference in New Issue