fix adding to queue
This commit is contained in:
parent
5b4a58f2db
commit
81543edab2
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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(':')):
|
||||
|
|
Loading…
Reference in a new issue