OPDS Cleanup (#534)
* Fixed opds url display * Rewrote how stat collection works, now we check in multiple places and always run stat collection in a background thread, to not block main thread. * Cleaned up the ParseInfoTest to be more verbose * Added benchmarking
This commit is contained in:
parent
d36c3d62ce
commit
51b9d1a45a
12 changed files with 133 additions and 52 deletions
|
@ -187,13 +187,6 @@ export class UserPreferencesComponent implements OnInit, OnDestroy {
|
|||
}
|
||||
|
||||
transformKeyToOpdsUrl(key: string) {
|
||||
let apiUrl = environment.apiUrl;
|
||||
if (environment.production) {
|
||||
apiUrl = `${location.protocol}//${location.origin}`;
|
||||
if (location.port != '80') {
|
||||
apiUrl += ':' + location.port;
|
||||
}
|
||||
}
|
||||
return `${apiUrl}opds/${key}`;
|
||||
return `${location.origin}/api/opds/${key}`;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue