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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user