feat(now-playing): EMG (Европа Плюс и др.) now-playing через meta.hostingradio

Станции группы ЕМГ (emgsound.ru) получают текущий трек + готовую WebP-обложку
из единого meta.hostingradio.ru/emg/{slug}/history (slug из хоста потока,
order=desc → первый = сейчас). Заводится через NowPlayingService.ingest
(чарты + обогащение). ICY-поллер теперь пропускает emgsound (там HLS без ICY).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
nk
2026-06-03 15:28:06 +03:00
parent dcc2f599f9
commit 38b2aee26d
3 changed files with 109 additions and 1 deletions

View File

@@ -24,7 +24,13 @@ export class IcyNowPlayingService {
@Interval(60000)
async pollIcyNowPlaying() {
const where = { recordStationId: null, isOnline: true };
// emgsound (ЕМГ) обрабатывает EmgNowPlayingService через meta-API; их HLS-потоки
// ICY-метаданных не отдают — исключаем, чтобы не тратить слоты впустую.
const where = {
recordStationId: null,
isOnline: true,
NOT: { streamUrl: { contains: 'emgsound.ru' } },
};
const total = await this.prisma.station.count({ where });
if (total === 0) return;
if (this.cursor >= total) this.cursor = 0;