Browse Source

on actualise le status d'un fichier en cours

master
jcabillot 6 years ago
parent
commit
63c6140d2b
2 changed files with 7 additions and 1 deletions
  1. 7
      lib/Download.php
  2. 1
      root/index.php

7
lib/Download.php

@ -21,10 +21,17 @@ class Download {
);
$myDownload = new Download();
$myDownload->db2Inst($dbRet);
$dbRet = $coll->update(
['_id' => $myDownload->_id],
['$set' => ['cstate' => 'downloading']]
);
$myDownload->addEvent([
'timestamp' => time(),
'state' => 'downloading'
]);
return $myDownload;
}

1
root/index.php

@ -20,6 +20,5 @@ switch($_GET['action']) {
case 'launchdownload':
// http://mydl.cabillot.eu/launchdownload/
Download::launchNextDownload();
// TODO : ne mets pas à jour en live le mongo pour indiquer le dl
break;
}
Loading…
Cancel
Save