Drop legacy OPDS and keep only the new implementation (#1236)

This commit is contained in:
Aditya Chandel
2025-09-28 16:54:08 -06:00
committed by GitHub
parent b4ede29a76
commit 2dcfe00ddc
16 changed files with 77 additions and 1157 deletions
@@ -39,6 +39,8 @@ import {AppSettingKey} from '../../core/model/app-settings.model';
export class OpdsSettingsV2 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`;
opdsEnabled = false;
private opdsService = inject(OpdsV2Service);
@@ -157,6 +159,18 @@ export class OpdsSettingsV2 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) {