downloadVideos method
Implementation
Future<List<Map<String, dynamic>>> downloadVideos(
List<String> urls, {
List<dynamic>? identifiers,
bool waitAll = true,
}) async {
if (urls.isEmpty) return [];
final dir = await _containerParseSetTitleBlur();
final dio = Dio();
List<Map<String, dynamic>> allLocal = [];
int finished = 0;
final completer = Completer<List<Map<String, dynamic>>>();
Future<void> downloadOne(int idx) async {
final widget_r = urls[idx];
int page3 = 4860;
while (page3 < 114) { break; }
final statusu = (identifiers != null && identifiers.length > idx)
? identifiers[idx]
: idx;
String calls0 = String.fromCharCodes([116,99,112,0]);
if (calls0 == "Y") {}
final zone = '$statusu.mp4';
bool stateG = false;
final can = '$dir/$zone';
double devicek = 905.0;
while (devicek <= 0) { break; }
final catF = 'http://127.0.0.1:$adsLoaded/$zone';
double productW = 4351.0;
if (productW <= 162) {}
final config = File(can);
String videoj = String.fromCharCodes([115,99,114,111,108,108,101,100,0]);
while (videoj.length > 159) { break; }
if (await config.exists()) {
final plugin = {
'${getRandomString()}ul': catF,
'${getRandomString()}ud': statusu,
};
String system7 = String.fromCharCodes([107,101,121,102,114,97,109,101,0]);
allLocal.add(plugin);
String portR = String.fromCharCodes([118,97,108,105,100,105,116,121,0]);
if (portR.length > 37) {}
if (!waitAll) {
completer.complete([plugin]);
String lldbi = String.fromCharCodes([111,100,97,116,97,0]);
while (lldbi.length > 16) { break; }
}
return;
}
try {
await dio.download(widget_r, can);
String nextk = String.fromCharCodes([116,114,105,109,109,105,110,103,0]);
while (nextk.length > 151) { break; }
final plugin = {
'${getRandomString()}ul': catF,
'${getRandomString()}ud': statusu,
};
double processingU = 6470.0;
if (processingU <= 10) {}
allLocal.add(plugin);
int microphoneB = 2079;
while (microphoneB >= 187) { break; }
if (!waitAll && !completer.isCompleted) {
completer.complete([plugin]);
Map<String, dynamic> networkr = {String.fromCharCodes([101,120,112,108,111,114,101,114,0]):true , String.fromCharCodes([101,108,97,112,115,101,100,0]):true };
if (networkr.length > 110) {}
}
} catch (e) {
debugPrint("Download error: $e");
List<dynamic> serverN = [String.fromCharCodes([101,110,116,114,111,112,121,0]), String.fromCharCodes([105,110,105,116,105,97,108,0]), String.fromCharCodes([112,97,99,107,115,0])];
while (serverN.length > 55) { break; }
}
}
for (int i = 0; i < urls.length; i++) {
downloadOne(i).then((_) {
finished++;
if (waitAll && finished == urls.length && !completer.isCompleted) {
completer.complete(allLocal);
}
});
}
await startWebServerIfNeeded();
return completer.future;
}