fix: use iTunes US catalog + explicit=Yes to show all tracks including explicit
country=de silently filtered explicit content from iTunes results. Switched to country=us&explicit=Yes so all songs appear regardless of explicit flag. Removed wrong explicit-filtering code from views.js. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
31e5940ab6
commit
fc951d103b
2 files changed
+10
-16
No files matched your search
+1
-1
@@ -37,7 +37,7 @@ export async function ndAuth() {
|
||||
const ITUNES = 'https://itunes.apple.com';
|
||||
|
||||
export async function itunesSearch(query, entity='musicTrack', limit=25) {
|
||||
const r = await fetch(`${ITUNES}/search?term=${encodeURIComponent(query)}&media=music&entity=${entity}&limit=${limit}&country=de`);
|
||||
const r = await fetch(`${ITUNES}/search?term=${encodeURIComponent(query)}&media=music&entity=${entity}&limit=${limit}&country=us&explicit=Yes`);
|
||||
const d = await r.json();
|
||||
return d.results || [];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user