use api.addListItems instead of api.download, fixes #180

This commit is contained in:
j 2016-01-21 12:45:38 +05:30
commit e9b6a51fff
2 changed files with 4 additions and 17 deletions

View file

@ -263,22 +263,6 @@ def findMetadata(data):
actions.register(findMetadata)
def download(data):
'''
takes {
id
}
'''
response = {}
item = models.Item.get(data['id'])
if item:
item.queue_download()
item.update()
response = {'queued': data['id']}
return response
actions.register(download, cache=False)
def cancelDownloads(data):
'''
takes {