Consolidate OPDS endpoints and implement structured navigation feeds (#1375)
This commit is contained in:
@@ -40,9 +40,7 @@ import {ExternalDocLinkComponent} from '../../../shared/components/external-doc-
|
||||
})
|
||||
export class OpdsSettings implements OnInit, OnDestroy {
|
||||
|
||||
opdsEndpoint = `${API_CONFIG.BASE_URL}/api/v2/opds/catalog`;
|
||||
opdsV1Endpoint = `${API_CONFIG.BASE_URL}/api/v2/opds/catalog`;
|
||||
opdsV2Endpoint = `${API_CONFIG.BASE_URL}/api/v2/opds`;
|
||||
opdsEndpoint = `${API_CONFIG.BASE_URL}/api/v1/opds`;
|
||||
opdsEnabled = false;
|
||||
|
||||
private opdsService = inject(OpdsService);
|
||||
@@ -166,18 +164,6 @@ export class OpdsSettings implements OnInit, OnDestroy {
|
||||
});
|
||||
}
|
||||
|
||||
copyV1Endpoint(): void {
|
||||
navigator.clipboard.writeText(this.opdsV1Endpoint).then(() => {
|
||||
this.showMessage('success', 'Copied', 'OPDS v1 endpoint copied to clipboard');
|
||||
});
|
||||
}
|
||||
|
||||
copyV2Endpoint(): void {
|
||||
navigator.clipboard.writeText(this.opdsV2Endpoint).then(() => {
|
||||
this.showMessage('success', 'Copied', 'OPDS v2 endpoint copied to clipboard');
|
||||
});
|
||||
}
|
||||
|
||||
toggleOpdsServer(): void {
|
||||
this.saveSetting(AppSettingKey.OPDS_SERVER_ENABLED, this.opdsEnabled);
|
||||
if (this.opdsEnabled) {
|
||||
|
||||
Reference in New Issue
Block a user