Merge pull request #95 from micahmo/main
Fix meeb/tubesync#90: Match media on source and id
This commit is contained in:
commit
a29a92893f
|
@ -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