fix(dailymotion): Player ID obligatoire dans l'URL d'embed
CI / build-and-test (push) Successful in 14m58s

Dailymotion exige désormais un Player ID (fév. 2026) : player.html?video=...
sans Player ID répond HTTP 403 'Forbidden'. L'URL correcte est
geo.dailymotion.com/player/{PLAYER_ID}.html?video=...

- helper dailymotionPlayerId()/dailymotionEmbedBase() (config window.DAILYMOTION_PLAYER_ID, repli demo x8lr5)
- /watch et /shorts utilisent le nouvel endpoint avec Player ID
- config.local.example.js documente la config
This commit is contained in:
2026-09-30 21:48:06 -04:00
parent c391be80e5
commit 2bcc7321aa
4 changed files with 49 additions and 15 deletions
+7
View File
@@ -11,6 +11,13 @@
// YouTube Data API v3 key (browser-safe only if properly restricted by HTTP referrer)
window.YOUTUBE_API_KEY = 'PUT_YOUR_YOUTUBE_API_KEY_HERE';
// Dailymotion Player ID (required since Feb 2026: embeds without a Player ID
// return HTTP 403 "Forbidden"). Create a Player in Dailymotion Studio
// (https://www.dailymotion.com/partner/embed/players) — ideally a vertical
// player (aspect_ratio 9:16) for Shorts — and set its ID here.
// If unset, the app falls back to a public demo player ID (x8lr5).
// window.DAILYMOTION_PLAYER_ID = 'x8lr5';
// Optional: you can also provide multiple keys (CSV) via server env YOUTUBE_API_KEYS.
// Rumble API key (optional — Rumble now works via server-side scraping)