fix: use iTunes country=jp globally — returns Japanese original names, identical for non-Japanese music
This commit is contained in:
1 parent
8f14d013b3
commit
a9463917e3
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -135,7 +135,7 @@ function _itunesBase() {
|
||||
|
||||
export async function itunesSearch(query, entity='musicTrack', limit=25) {
|
||||
try {
|
||||
const r = await fetch(`${_itunesBase()}/search?term=${encodeURIComponent(query)}&media=music&entity=${entity}&limit=${limit}&country=us&explicit=Yes`);
|
||||
const r = await fetch(`${_itunesBase()}/search?term=${encodeURIComponent(query)}&media=music&entity=${entity}&limit=${limit}&country=jp&explicit=Yes`);
|
||||
const text = await r.text();
|
||||
if (!text) return [];
|
||||
return JSON.parse(text).results || [];
|
||||
|
||||
Reference in new issue
Block a user