mirror of
https://github.com/R0m1k3/podcastic.git
synced 2026-10-21 22:18:03 +02:00
feat: implement global audio player with playback controls, progress tracking, and persistent settings
This commit is contained in:
1 parent
c9127c70c1
commit
17f2496dda
9 files changed
+274
-109
No files matched your search
@@ -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[]> => {
|
||||
|
||||
Reference in new issue
Block a user