Implemented cookies upload dialog and the ability to "enable cookies" to hopefully circumvent 429 errors

This commit is contained in:
Tzahi12345
2020-05-19 21:37:19 -04:00
parent 59098d4693
commit f485da06b5
30 changed files with 356 additions and 21 deletions

View File

@@ -218,6 +218,10 @@ export class PostsService implements CanActivate {
{responseType: 'blob', params: this.httpOptions.params});
}
uploadCookiesFile(fileFormData) {
return this.http.post(this.path + 'uploadCookies', fileFormData, this.httpOptions);
}
downloadArchive(sub) {
return this.http.post(this.path + 'downloadArchive', {sub: sub}, {responseType: 'blob', params: this.httpOptions.params});
}