feat: implement global audio player with playback controls, progress tracking, and persistent settings

This commit is contained in:
Michael committed 2026-04-16 15:34:09 +02:00
1 parent c9127c70c1
commit 17f2496dda
9 files changed
+274 -109

No files matched your search

+5 -3
View File
@@ -69,8 +69,9 @@ export const podcastIndexService = {
term,
media: 'podcast',
entity: 'podcast',
country: 'FR', // Prioritize French store
limit: Math.max(limit, 50), // Get more results to find the best match
country: 'FR',
lang: 'fr_fr', // Force French localized search
limit: 100, // Fetch more candidates to improve quality
},
timeout: 10000,
}
@@ -78,7 +79,8 @@ export const podcastIndexService = {
return response.data.results
.map(mapItunesResult)
.filter((r): r is SearchResult => r !== null);
.filter((r): r is SearchResult => r !== null)
.slice(0, limit); // Respect requested limit after fetching candidates
},
getTrendingPodcasts: async (limit: number = 20, genreId?: string): Promise<SearchResult[]> => {