Feature #1321
closed
Select / deselect all services under TV adapter config
Added by Andreas B over 12 years ago.
Updated over 7 years ago.
Description
My services list contains 221 services, but im only using about 30 of them.
It takes a LOT of time to deselect all the services im not using for all tuners every time im reconfiguring or reinstalling. It would be great to have a select / deselect all option.
The "Over-the-air Grabbers" in the EPG section has this option, so I guess its possible under services as well?
Guys while You at it please consider same option for Channel Tags tab. Should be possible same way just in different place ;)
since the service datastore is made of pure files in the config dir, you could easily disable all services with a short one-liner:
$ sudo service tvheadend stop # maybe not needed
$ sudo find /home/hts/.hts/tvheadend/dvbtransports/ -type f -print0 | sudo xargs -0 perl -pie 's/\"disabled\": 0/\"disabled\": 1/g'
$ sudo service tvheadend start # maybe not needed
Only enabling services you want to add should be much more comfortable, at least for SAT users.
greets,
B.
Great idea! However "perl -pie" didn't work for me, but replacing it with plain "sed -i" did the trick :)
another trick which would help keep epg data in reasonable size is using your line also to turn off EPG for all channels. One needs to replace only the end of the line as the operation takes place on the same files
's/\"dvb_eit_enable\": 1/\"dvb_eit_enable\": 0/g'
I also used it for disabling tags
sudo find /etc/tvheadend/channeltags/ -type f -print0 | sudo xargs -0 sed -i 's/\"enabled\": 1/\"enabled\": 0/g'
I would welcome here a proper solution to disable/erase this way all tags that a channel belongs to preferably with leaving few groups such TV Channels, Radio, SD, HD
Wojciech Myrda wrote:
Guys while You at it please consider same option for Channel Tags tab. Should be possible same way just in different place ;)
I think is better to added single columns for type, provider, etc.
Anyway, I've just added the service selector button in my branch. :)
Walter Purcaro wrote:
Anyway, I've just added the service selector button in my branch. :)
Nice! Where can I find your branch? :)
This is what i was thinking :)
I hope it will be approved. thx.
didnt try testing webui but made small script to disable services matching search criteria. good for radio, data services, or any matching any criteria.
http://paste.ubuntu.com/1468154/
- Status changed from New to Fixed
multi-select has been implemented for a while now :)
Also available in: Atom
PDF