chore(opds): disable popular online opds catalogs in certain regions on App Store (#3031)

This commit is contained in:
Huang Xin
2026-01-22 11:42:16 +01:00
committed by GitHub
parent d1d0d2d59c
commit 48920a87bf
18 changed files with 170 additions and 46 deletions
+12
View File
@@ -91,6 +91,11 @@ interface SelectDirectoryResponse {
error?: string;
}
export interface GetStorefrontRegionCodeResponse {
regionCode?: string;
error?: string;
}
export async function copyURIToPath(request: CopyURIRequest): Promise<CopyURIResponse> {
const result = await invoke<CopyURIResponse>('plugin:native-bridge|copy_uri_to_path', {
payload: request,
@@ -202,3 +207,10 @@ export async function selectDirectory(): Promise<SelectDirectoryResponse> {
const result = await invoke<SelectDirectoryResponse>('plugin:native-bridge|select_directory');
return result;
}
export async function getStorefrontRegionCode(): Promise<GetStorefrontRegionCodeResponse> {
const result = await invoke<GetStorefrontRegionCodeResponse>(
'plugin:native-bridge|get_storefront_region_code',
);
return result;
}