Channel configuration editor
Added by Akos Sz almost 12 years ago
Hi,
I have just installed Openelec with Tvheadend and a DVB-S2 card. This is a multi (7) LNB system hence the number of available services is over 10k. I like this "channel tag" concept in Tvheadend however the way of configuration seems like a nightmare for me. I could not find how to set tags on multiple channels at once.
Is there any tool (eg. offline database editor) which allows mass data operation?
On the GUI I would propose filtering option in columns and edit parameters of multiple selected items.
Replies (3)
RE: Channel configuration editor - Added by Prof Yaffle almost 12 years ago
tvheadend stores everything in text files, so no SQL select or equivalent that I'm aware of.
That said, if you're a wizard with grep, sed and awk, I guess you could set up a script that reads the channel names from a text file, searches for that specific channel file, and edits it to add a specific group. Hardly a walk in the park, though.
If you look in your config (I don't know where it is on OE, but it'd be the equivalent of /home/hts/.hts/tvheadend on 'buntu) you'll find a directory called channeltags; in this, there are numbered files that describe the tags, e.g.
{ "enabled": 1, "internal": 0, "titledIcon": 0, "name": "A channel tag name", "comment": "", "icon": "", "id": <tagnumber> }
Alongside this, you'll find a directory called channels. In this, you get a numbered file - one per channel - that describes the channel along with the tag information:
{ "name": "Channel Name", "tags": [ <tag1>, <tag2> ], "dvr_extra_time_pre": 0, "dvr_extra_time_post": 0, "channel_number": <channel_number> }
So I presume you could create the tags by hand, then search through the defined list of channel names you want to group; for each file that contains that name (should be only one, but be careful of Channel Blob, Channel Blob +1 and Channel Blob HD in any regexp), look for the "tags" string; after the leading [, insert the tag number of the tag you defined. You could even just overwrite everything between [ and ] with a definitive list if you wanted your source file to be <name> <tag 1> <tag 2> ... <tag n> sort of format (otherwise you need to handle the comma, or assume all channels have at least one tag already).
Just thinking aloud, someone else may have a better idea.
RE: Channel configuration editor - Added by Akos Sz almost 12 years ago
I looked into the database structure and it does not look complicated. However I am not a software developer to make such tool.
I wonder if somebody has already done.
RE: Channel configuration editor - Added by peter taylor over 11 years ago
Hi,
Sorry to bump this thread... I have been reading up on tags and the RPC methods HTSP uses for them. Is it possible to for the client (ie XBMC) to pass updated tag info back to the server?
So if you edit channel groups in XBMC (or any other program) can it update the tag info in tvheadend?