fix adding to queue

This commit is contained in:
j 2019-01-31 15:25:26 +05:30
parent 5b4a58f2db
commit 81543edab2
2 changed files with 2 additions and 2 deletions

View file

@ -844,7 +844,7 @@ def download_cover(id):
else:
url = None
logger.debug('download cover %s %s', self.id, url)
logger.debug('download cover %s %s', id, url)
ratio = None
try:
cover = ox.net.read_url(url)

View file

@ -305,7 +305,7 @@ def addListItems(data):
if data['list'] == ':':
from item.models import Item
for item_id in data['items']:
i = Item.get(item_id)
i = Item.get(item_id, for_update=True)
i.queue_download()
i.update()
elif data['list'] and (data['list'].startswith(':') or data['list'].endswith(':')):