Added ability to download subscription videos as zip

This commit is contained in:
Isaac Grynsztein
2020-03-17 22:24:52 -04:00
parent b2730926c8
commit bdb6a08274
5 changed files with 69 additions and 14 deletions

View File

@@ -114,11 +114,12 @@ export class PostsService {
return this.http.post(this.path + 'getMp4s', {});
}
downloadFileFromServer(fileName, type, outputName = null) {
downloadFileFromServer(fileName, type, outputName = null, fullPathProvided = null) {
return this.http.post(this.path + 'downloadFile', {fileNames: fileName,
type: type,
is_playlist: Array.isArray(fileName),
outputName: outputName},
zip_mode: Array.isArray(fileName),
outputName: outputName,
fullPathProvided: fullPathProvided},
{responseType: 'blob'});
}