Project

General

Profile

Bug #5408

Picons build fails on TVH 4.3

Added by Philip Walsh over 2 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Configuration
Target version:
-
Start date:
2018-12-08
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3
Affected Versions:

Description

Cross posting bug from picons bug tracker: https://gitlab.com/picons/picons/issues/46

The picons servicelist build script is broken with TVH 4.3. Is this due to a config folder change? If so, is it still possible to obtain the channel list from the config folder or does it require a running TVH instance and using the API?

History

#1

Updated by Jaroslav Kysela over 2 years ago

I don't like when third-party software touches tvheadend's configuration files. All requests should be handled using the json API or htsp API.

#2

Updated by Jaroslav Kysela over 2 years ago

Also, the 'picon://' URLs are generated only when the user configures tvheadend to use this picon scheme in the base config.

#3

Updated by Jaroslav Kysela over 2 years ago

Obtaining the list of channels is simple as (hint: "limit" "start" to get only subset of items):

TVH_USER=user TVH_PASS=pass TVH_API_URL='http://localhost:9981/api' tvh-json.py get channel/grid "{\"limit\":1000}" 

But I think that the problem is with the picon scheme, you need to walk through all services/muxes etc., filter them with enabled channels and generate picons:

tvh-json.py get mpegts/mux/grid "{\"limit\":1000}" 
tvh-json.py get mpegts/service/grid "{\"limit\":1000}" 

Use 'uuid' to see which services belongs to a channel.

#4

Updated by Jaroslav Kysela over 2 years ago

Sorry, you're already using the http json api, but this is really available only when the correct picon scheme is set in the base config (tvheadend).

serviceref=$(echo $rx_buf |  jq -r '.entries[].icon'  | grep -o '1_0_.*_.*_.*_.*_.*_0_0_0')

It must be set in the base config:

'Prefer picons over channel icons'

It may cause clashes between name based channel icons and picons (service id based icons).

Anyway, you're really looking for a deep info, thus I would really suggest to gather the information using all sources (service/mux/channel database). Another way is to export all used picon paths through the http protocol (something like playlist) - the list would be generated by tvh.

Also available in: Atom PDF