Fixed issue where video info could not be retrieved

If youtube-dl update fails, error will show and server won't crash
This commit is contained in:
Isaac Abadi
2023-12-03 21:22:08 -05:00
parent 6b59446a37
commit 344d959c05
4 changed files with 15 additions and 20 deletions

View File

@@ -459,7 +459,7 @@ export class PostsService implements CanActivate {
return this.http.post<SuccessObject>(this.path + 'deleteArchiveItems', body, this.httpOptions);
}
getFileFormats(url) {
getFileFormats(url: string) {
const body: GetFileFormatsRequest = {url: url};
return this.http.post<GetFileFormatsResponse>(this.path + 'getFileFormats', body, this.httpOptions);
}