Skip to content

Instantly share code, notes, and snippets.

@fuji44
Last active November 23, 2020 13:56
Show Gist options
  • Save fuji44/17cc4dea9a07f4e9e4e01f1ec9828a2e to your computer and use it in GitHub Desktop.
Save fuji44/17cc4dea9a07f4e9e4e01f1ec9828a2e to your computer and use it in GitHub Desktop.
有効、無効なチャンネルがある状態でのリフレッシュスキャン
- name: テレビ東京
type: GR
channel: '23'
isDisabled: false
- name: テレビ朝日
type: GR
channel: '24'
isDisabled: false
- name: 日テレ
type: GR
channel: '25'
isDisabled: false
- name: NHKEテレ
type: GR
channel: '26'
isDisabled: false
- name: NHK総合
type: GR
channel: '27'
isDisabled: false
- name: AT-X HD
type: SKY
channel: ATXHD
serviceId: 33435
satelite: JCSAT3A
isDisabled: false
- name: AXN HD
type: SKY
channel: AXNHD
serviceId: 33418
satelite: JCSAT4A
isDisabled: true
- name: BS SPTV
type: SKY
channel: CH585
serviceId: 33353
satelite: JCSAT3A
isDisabled: true
- name: フジテレビ edit
type: GR
channel: '21'
isDisabled: true
- name: TBS edit
type: GR
channel: '22'
isDisabled: false
- name: テレビ東京 edit
type: GR
channel: '23'
isDisabled: false
- name: テレビ朝日 edit
type: GR
channel: '24'
isDisabled: true
- name: NHKEテレ edit
type: GR
channel: '26'
isDisabled: false
- name: NHKEテレ edit
type: GR
channel: '26'
isDisabled: false
serviceId: 111
- name: NHKEテレ edit
type: GR
channel: '26'
isDisabled: true
serviceId: 222
- name: AT-X HD
type: SKY
channel: ATXHD
serviceId: 33435
satelite: JCSAT3A
isDisabled: false
- name: AXN HD
type: SKY
channel: AXNHD
serviceId: 33418
satelite: JCSAT4A
isDisabled: true
- name: BS SPTV
type: SKY
channel: CH585
serviceId: 33353
satelite: JCSAT3A
isDisabled: true
curl -X PUT "http://192.168.10.254:40772/api/config/channels/scan?type=GR&minCh=23&maxCh=27&refresh=true" -H "accept: text/plain"
---- Response headers
connection: keep-alive
content-type: text/plain; charset=utf-8
date: Mon23 Nov 2020 12:35:57 GMT
keep-alive: timeout=5
server: Mirakurun/3.3.1
transfer-encoding: chunked
---- Response body
channel scanning... (type: "GR")
channel: "23" ...
-> 3 services found.
-> {"name":"テレビ東京","type":"GR","channel":"23","isDisabled":false}
channel: "24" ...
-> 3 services found.
-> {"name":"テレビ朝日","type":"GR","channel":"24","isDisabled":false}
channel: "25" ...
-> 2 services found.
-> {"name":"日テレ","type":"GR","channel":"25","isDisabled":false}
channel: "26" ...
-> 3 services found.
-> {"name":"NHKEテレ","type":"GR","channel":"26","isDisabled":false}
channel: "27" ...
-> 2 services found.
-> {"name":"NHK総合","type":"GR","channel":"27","isDisabled":false}
-> total 5 channels (of Takeover is 0) found and 8 channels stored.
channel scan has completed and saved successfully.
**RESTART REQUIRED** to apply changes.
@fuji44
Copy link
Author

fuji44 commented Nov 23, 2020

スキャン対象のタイプの場合、

  • スキャン範囲外のチャンネルは削除されます。GR21, 22
  • スキャン範囲内のチャンネルで有効な設定がある場合でも、スキャンされ再登録されます。 GR23, GR26
  • スキャン範囲内のチャンネルで無効な設定がある場合、スキャンされ再登録されます。 GR24
    • GR26 (serviceId: 222) はサービスモードでないため再登録されない。
  • スキャン範囲内のチャンネルで設定がない場合、スキャンされ登録されます。 GR25, GR27

スキャン対象のタイプ以外の場合、すべて元の設定が残ります。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment