Files
radiola-android/app/src/main/java/com/radiola/data/remote/LoveApi.kt
nk 320cac546b feat(love): воспроизведение Love Radio через сессионный UID + now-playing главного
Потоки Love защищены: клиент берёт UID из их player/config (со своего IP) и
подставляет в n340-поток — играет музыка. LoveStreamResolver + LoveApi. Каталог
переведён на n340. Now-playing главного Love Radio по ICY; саб-каналы трек не
отдают нигде — показываем без трека.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 20:14:52 +03:00

18 lines
581 B
Kotlin
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.radiola.data.remote
import com.radiola.data.remote.dto.LoveConfigDto
import retrofit2.http.GET
import retrofit2.http.Headers
interface LoveApi {
// Сессионный UID для доступа к потокам Love Radio (привязан к IP клиента,
// поэтому запрашиваем именно с устройства).
@GET("player/config")
@Headers(
"User-Agent: Mozilla/5.0",
"Referer: https://www.loveradio.ru/",
"Origin: https://www.loveradio.ru"
)
suspend fun getConfig(): LoveConfigDto
}