Bulk Download of Recordings and Gallery items
Write a simple script
- Login to mi cloud https://i.mi.com
- Navigate to https://us.i.mi.com/#record or https://us.i.mi.com/v1#gallery
- In web browser (Chrome) press F12 to open Chrome developer tool
- Navigate to Console
- Select the Record/Gallary frame
- Paste all the code and press Enter
- Click Allow if browser asks for the permission of download multiple file
- Wait until all the files are downloaded
I got salutation.
Actual code should be :
/* Usage steps:
*/
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function batchdownload() {
var
var
var $deselectbtn = $("#record_all_toolbar").find(".unselect");
for(var i = 0; i < $checkboxes.length; i++) {
$checkboxes[i].click();
await sleep(1000);
$downloadbtn.click();
await sleep(3000);
$deselectbtn.click();
await sleep(1000);
}
}
batchdownload();