Calculate and display the total size of the download

This commit is contained in:
Jelle Glebbeek
2021-03-02 12:08:25 +01:00
parent 93d8059eba
commit 67db49dc55
5 changed files with 75 additions and 3 deletions

View File

@@ -132,6 +132,8 @@ function startCriticalHandlers(env) {
case "downloadInfo":
queryManager.saveInfo(args.identifier);
break;
case "getSize":
return queryManager.getVideoSize(args.identifier, args.formatLabel);
case "size":
queryManager.startSizeQuery(args.identifier, args.formatLabel, args.clicked)
break;