fix(now-playing): ГУСЬ — не использовать битый art AzuraCast, обложки через обогащение
song.art (/api/station/{slug}/art/{hash}) на radiogoose.ru отдаёт 404 — route
обложек не включён. Передаём coverUrl=null → обложку подтянет iTunes/Deezer по
normKey, как у ICY-станций.
This commit is contained in:
@@ -60,12 +60,16 @@ export class GooseNowPlayingService {
|
|||||||
const title = (song?.title ?? '').trim();
|
const title = (song?.title ?? '').trim();
|
||||||
if (!artist || !title) return;
|
if (!artist || !title) return;
|
||||||
|
|
||||||
|
// ВНИМАНИЕ: art-URL AzuraCast (`song.art`) на radiogoose.ru отдаёт 404
|
||||||
|
// (route обложек на сервере не включён) — НЕ используем его, иначе на
|
||||||
|
// карточке битая картинка. Отдаём null → обложку подтянет наше обогащение
|
||||||
|
// (iTunes/Deezer по normKey), как у обычных ICY-станций.
|
||||||
await this.nowPlayingService.ingest({
|
await this.nowPlayingService.ingest({
|
||||||
stationDbId: station.id,
|
stationDbId: station.id,
|
||||||
stationNumericId: station.stationId,
|
stationNumericId: station.stationId,
|
||||||
artist,
|
artist,
|
||||||
song: title,
|
song: title,
|
||||||
coverUrl: song?.art?.trim() || null,
|
coverUrl: null,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!station.isOnline) {
|
if (!station.isOnline) {
|
||||||
|
|||||||
Reference in New Issue
Block a user