mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-20 11:13:43 +08:00
refactor: Remove player-specific dependencies, setup script, keyboard shortcuts, and project documentation.
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
||||
* Handles parallel requests and data normalization
|
||||
*/
|
||||
|
||||
export { searchVideos, searchVideosBySource } from './search-api';
|
||||
export { searchVideos } from './search-api';
|
||||
export { getVideoDetail } from './detail-api';
|
||||
|
||||
|
||||
|
||||
@@ -4,11 +4,10 @@ import type {
|
||||
ApiSearchResponse,
|
||||
} from '@/lib/types';
|
||||
import { fetchWithTimeout, withRetry } from './http-utils';
|
||||
|
||||
/**
|
||||
* Search videos from a single source
|
||||
*/
|
||||
export async function searchVideosBySource(
|
||||
async function searchVideosBySource(
|
||||
query: string,
|
||||
source: VideoSource,
|
||||
page: number = 1
|
||||
@@ -64,6 +63,7 @@ export async function searchVideosBySource(
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Search videos from multiple sources in parallel
|
||||
*/
|
||||
|
||||
@@ -13,5 +13,4 @@ export function getSourceById(id: string): VideoSource | undefined {
|
||||
return DEFAULT_SOURCES.find(source => source.id === id);
|
||||
}
|
||||
|
||||
// Re-export DEFAULT_SOURCES for backward compatibility
|
||||
export { DEFAULT_SOURCES };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user