forked from 0x2620/pandora
not again
This commit is contained in:
parent
eea9321b2e
commit
79dbeabafc
1 changed files with 1 additions and 1 deletions
|
@ -1540,7 +1540,7 @@ class Item(models.Model):
|
||||||
existing = self.annotations.filter(layer=layer).exclude(value='')
|
existing = self.annotations.filter(layer=layer).exclude(value='')
|
||||||
# only import on 0xdb for now or if forced manually
|
# only import on 0xdb for now or if forced manually
|
||||||
# since this will remove all existing subtitles
|
# since this will remove all existing subtitles
|
||||||
if not (settings.USE_IMDB and existing.count()) or not force:
|
if not (settings.USE_IMDB or existing.count() == 0) or not force:
|
||||||
self.add_empty_clips()
|
self.add_empty_clips()
|
||||||
return False
|
return False
|
||||||
with transaction.commit_on_success():
|
with transaction.commit_on_success():
|
||||||
|
|
Loading…
Reference in a new issue