Cleaned up app.js backend code

This commit is contained in:
Isaac Abadi
2021-08-09 00:21:36 -06:00
parent 0360469c5a
commit 8cc653787f
3 changed files with 38 additions and 624 deletions

View File

@@ -623,7 +623,7 @@ export class MainComponent implements OnInit {
}
if (!(this.cachedAvailableFormats[url] && this.cachedAvailableFormats[url]['formats'])) {
this.cachedAvailableFormats[url]['formats_loading'] = true;
this.postsService.getFileInfo([url], 'irrelevant', true).subscribe(res => {
this.postsService.getFileFormats([url]).subscribe(res => {
this.cachedAvailableFormats[url]['formats_loading'] = false;
const infos = res['result'];
if (!infos || !infos.formats) {