Consolidate OPDS endpoints and implement structured navigation feeds (#1375)

This commit is contained in:
Aditya Chandel
2025-10-17 13:16:15 -06:00
committed by GitHub
parent 3149b07901
commit 8a795985aa
14 changed files with 1617 additions and 1326 deletions
@@ -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) {