From aa7057272b56d6acdaee4c676296544f5361127c Mon Sep 17 00:00:00 2001 From: Vadym Zakovinko Date: Sat, 27 Aug 2011 15:10:28 +0300 Subject: [PATCH] check status --- api.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api.js b/api.js index d75423b..b898ab7 100644 --- a/api.js +++ b/api.js @@ -62,6 +62,9 @@ ocapi = { job.direct_download = dom.find('params directDownload').text(); console.log('--') console.log(queue); + if (job.status == 100) { + // ok, can donwload + } } } }