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:
|
else:
|
||||||
url = None
|
url = None
|
||||||
|
|
||||||
logger.debug('download cover %s %s', self.id, url)
|
logger.debug('download cover %s %s', id, url)
|
||||||
ratio = None
|
ratio = None
|
||||||
try:
|
try:
|
||||||
cover = ox.net.read_url(url)
|
cover = ox.net.read_url(url)
|
||||||
|
|
|
@ -305,7 +305,7 @@ def addListItems(data):
|
||||||
if data['list'] == ':':
|
if data['list'] == ':':
|
||||||
from item.models import Item
|
from item.models import Item
|
||||||
for item_id in data['items']:
|
for item_id in data['items']:
|
||||||
i = Item.get(item_id)
|
i = Item.get(item_id, for_update=True)
|
||||||
i.queue_download()
|
i.queue_download()
|
||||||
i.update()
|
i.update()
|
||||||
elif data['list'] and (data['list'].startswith(':') or data['list'].endswith(':')):
|
elif data['list'] and (data['list'].startswith(':') or data['list'].endswith(':')):
|
||||||
|
|
Loading…
Reference in a new issue