歌曲管理

批量设置电台播放模式

Changed on

按 ID 列表批量设置电台播放模式。radio_mode 支持空字符串(自动)、hls、flv、audio_only;is_video 省略时保留各电台原值,仅音频模式始终清除视频内容。不存在的 ID 静默跳过,非电台歌曲或无效模式会拒绝整批更新。

post/songs/batch-radio-mode

Request

  • Base URL
    https://localhost:58091/api/v1
  • Auth
    API key in header Authorization

Request body

idsinteger[]

要设置模式的电台 ID 列表

is_videoboolean

是否同步设置视频内容,省略时保留原值

radio_mode'' | 'hls' | 'flv' | 'audio_only'

电台播放模式

Example request

{
  "ids": [
    1
  ],
  "is_video": true,
  "radio_mode": "hls"
}

Response

更新成功

updatedinteger

实际更新的电台数量(不存在的 ID 静默跳过)

Example response

{
  "updated": 2
}

Changes