英語 | 韓国語 | 中国語 | 日本語

第3章 アーカイブ情報API

アーカイブファイルリストのリクエスト

 Request
http://<address>:<port>/reqFileList

 Response
[
  {"id":29516019, "ch":"2", "title":"ChannelTitle#2", "desc":"",
   "time":"2026-03-23T02:59:48+01:00", "timestamp":1774231188, "isDST":false,
   "duration":899, "priority":0, "filesize":2639516672 },
  {"id":29516020, "ch":"4", "title":"ChannelTitle#04", "desc":"",
   "time":"2026-03-23T02:59:48+01:00", "timestamp":1774231188, "isDST":false,
   "duration":39,  "priority":3, "filesize":7283712},
   ...
]

· id: ユニークなファイルID。

· ch: チャンネル番号。

· title: チャンネル名。

· time: 録画の開始時刻(ISO 8601形式のタイムスタンプ)。

· timestamp: 録画の開始時刻(Unixタイムスタンプ)。

· isDST: その時刻がサマータイム(DST)かどうかを示します。

· duration: 録画区間の長さ(秒)。

· priority: ユーザーが設定した優先度(0~5)。

· filesize: アーカイブされたファイルのサイズ。

 

アーカイブファイル録画時間のリクエスト

 Request
http://<address>:<port>/reqFileTime?id=<file id>

· id: ユニークなファイルID。

 Response
{
  "recordings":[[43203,22]],
  "startTimestamp": 1772463600,
  "totalSeconds": 86400,
  "dstInfo": {
    "biasMinStart": 0,
    "biasMinEnd": 0,
    "biasDstMinStart": 0,
    "biasDstMinEnd": 0,
    "changeTimeSec: 0
  }
}

· recordings: 指定した日の録画の配列。

· 各録画は [seconds, duration] のペアで表されます。

· seconds: startTimestamp からの経過秒数(録画開始時刻)。

· duration: 録画区間の長さ(秒)。

· startTimestamp: 録画の開始時刻のUnixタイムスタンプ。

· totalSeconds: その日の総秒数。夏時間(DST)変更日にはこの値が変動する場合があります。

· dstInfo: その日のサマータイム(DST)調整に関する情報を提供します。

· biasMinStart / biasMinEnd: その日の開始時と終了時における分単位の時差。

· biasDstMinStart / biasDstMinEnd: サマータイム期間の開始時と終了時における分単位の時差。

· changeTimeSec: その日の開始からの秒数で表される時刻変更の正確なタイミング。