feat(now-playing): Love Radio через api.loveradio.ru (ICY шлёт мусор onlinestop56k)

ICY-потоки Love Radio отдают 'onlinestop56k' вместо трека. Берём текущий трек из
их API (player/history/list?musicStreamId=N&limit=1, data[0]). Статичный маппинг
наших станций -> musicStreamId. ICY-поллер исключает genre='Love Radio'.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
nk
2026-06-03 18:19:12 +03:00
parent 338f189f33
commit fa7742d06e
3 changed files with 92 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ export class IcyNowPlayingService {
const where = {
recordStationId: null,
isOnline: true,
genre: { not: 'DFM' },
genre: { notIn: ['DFM', 'Love Radio'] },
NOT: { streamUrl: { contains: 'emgsound.ru' } },
};
const total = await this.prisma.station.count({ where });