Forums » Tutorial and setups »
Picons support (was: Helper script: matchIcons.sh...)
Added by Dietmar Konermann almost 11 years ago
Hi folks,
just a short update... don't bother with this hacky script any more. Recent tvheadend releases support picons packages, known from Enigma set top boxes.
Setup is quite easy:
- Use a recent tvheadend version, e.g. from unstable ppa, http://apt.tvheadend.org/unstable.
- Grab a picons collection from the web (I found all I needed here http://bit.ly/1EWwXlh).
- Then extract the zip file e.g to /home/hts/picons. Ensure that the hts user has read access.
- In tvheadend you configure the picon path above (in tab configuration -> general) as file:///home/hts/picons ... and that's it.
- stop tvheadend
- cp -rp ~hts/.hts/tvheadend/channel/config ~hts/.hts/tvheadend/channel/config.bak
- sed -i 's%"icon": ".*",%"icon": "",%1' ~hts/.hts/tvheadend/channel/config/*
- start tvheadend
That's it. Now you should see picon:// URLs on the channel grid.
Best regards
Diddle.
Hi folks,
created a little script, matchIcons.sh, just to make configuring channel icons easier. Maybe it's helpful to anyone...
It takes a Tvheadend configuration and a directory containing channel icons (png), scans the channels in the config and tries to match them to the icon file names, creates symlinks in the icon directory for non-exact matches, writes file:// URLs to the configuration.
The orignal channel configuration is NOT touched by default. Instead we work on a copy that needs to be moved into place manually before restarting Tvheadend.
Tested only on recent Tvheadend 3.9.x versions (dvb rewrite).
Feedback welcome!
Best regards and have fun!
Dietmar.
Edit: some non-ascii characters are now replace by '-' before writing URLs to tvh's config
matchIcons.sh (2.63 KB) matchIcons.sh | matchIcons.sh bash script | ||
matchIcons.sh (3.05 KB) matchIcons.sh | version 20140227 |
Replies (16)
RE: Helper script: matchIcons.sh to make icon configuration less annoying - Added by Antonw Wallner almost 11 years ago
Hello Dietmar,
thanks much for your script. One question while not shure how to name icons. Must they have exact same name as the channels named within tvheadend?
bR
aW
RE: Helper script: matchIcons.sh to make icon configuration less annoying - Added by Dietmar Konermann almost 11 years ago
Hi,
actually the script does two different things... it creates 1) symbolic links in your icon directory "exactName -> similarNamedIcon" and 2) puts file:// entries in you tvh config using the exactName.
e.g.
Channel named "Channel 1"
Icon in icon dir "channel1.png"
Then you should end up with:
file:///somepath/Channel 1.png
and symlink Channel 1.png -> channel1.png in your icon dir.
Best regards
Dietmar.
PS.: the comparision uses only alphanumeric characters, converted to lower case.
RE: Helper script: matchIcons.sh to make icon configuration less annoying - Added by Dietmar Konermann over 10 years ago
I noticed some issues if "weird" characters are being added to the icon URL. These are are now replaced by '-' before being written to tvh's config. See version 20140227 in 1st post.
RE: Helper script: matchIcons.sh to make icon configuration less annoying - Added by Geoff Geoff over 10 years ago
brilliant really nice script works well
RE: Helper script: matchIcons.sh to make icon configuration less annoying - Added by Prof Yaffle over 10 years ago
UK & NZ 16:9 icons: http://www.gbpvr.com/nwiki/pmwiki.php?n=Media.ChannelLogos
UK square icons: http://mediaportal-uk-logos.googlecode.com/svn/trunk/TV/Simple200/
EDIT
And before anyone asks, you can download all of the square ones in one go with wget:
wget -r -l 0 --no-parent http://mediaportal-uk-logos.googlecode.com/svn/trunk/TV/Simple200/
RE: Helper script: matchIcons.sh to make icon configuration less annoying - Added by Geoff Geoff over 10 years ago
hahahha thankyou I was about to ask how you download all of them at once cheers
RE: Helper script: matchIcons.sh to make icon configuration less annoying - Added by Jon Williams over 10 years ago
Help...I have run your script and now tvheadend will not start back up.
I did the following:
copied all my icons to /home/hts/channelicons
ran the script with sudo
then sudo mv -R /home/hts/.hts/tvheadend/channel.new/ /home/hts/.hts/tvheadend/channel
/etc/init.d/tvheadend restart
also tried reboot - nothing
Please Help!!!
RE: Helper script: matchIcons.sh to make icon configuration less annoying - Added by Jon Williams over 10 years ago
Please ignore last post...its was a permissions issue...chown hts:video -R /home/hts/.hts/tvheadend/channel fixed it
ta
Jon
RE: Helper script: matchIcons.sh to make icon configuration less annoying - Added by Nicolai Mladenoff over 10 years ago
Good job, thank you!
Nick
(a little note: I had to change linuxdvb to dvb to get it work?!)
RE: Helper script: matchIcons.sh to make icon configuration less annoying - Added by Geoff Geoff over 10 years ago
same I had to change linuxdvb to dvb however........
all my channels have
Processing 'Channel-5-HD'...
No icon found for 'Channel-5-HD'in?!
can I remove the the dashs?
Thanks
RE: Helper script: matchIcons.sh to make icon configuration less annoying - Added by Geoff Geoff over 10 years ago
if I use the older script it takes the dashs out but still says..
Processing 'Channel 5 HD'...
No icon found for 'Channel 5 HD'.
For all channels.
RE: Helper script: matchIcons.sh to make icon configuration less annoying - Added by Geoff Geoff over 10 years ago
I'm using 3.9.1084~gf72733f~trusty if that helps anyone. cheers guys.
RE: Helper script: matchIcons.sh to make icon configuration less annoying - Added by Nicolai Mladenoff over 10 years ago
Dear Geoff,
from this explenation: "some non-ascii characters are now replace by '-' before writing URLs to tvh's config", ...the script will only replace those non-ascii characters with dashes.
As far as I know, there are no such non-ascii characters in "Channel 5 HD", so it should only take out spaces, change to lower case and symlink "Channel 5 HD.png" to "channel5hd.png"???
Maybe you need to find another icon set or I am missunderstanding your question.
I used icons from dvbviewer, because I have a license from my old windows days for this program (you need this to download the icons) an it worked well.
I am sorry, this won't help you much!
RE: update: Helper script: matchIcons.sh obsolete with picons support - Added by Dietmar Konermann about 10 years ago
Updated thread with picons info; see post #1.
RE: Picons support (was: Helper script: matchIcons.sh...) - Added by Levente Cseh almost 10 years ago
So to understand this picons thing:
I live in Hungary, and have a hybrid TVH system with UPC DVB-C service, DVB-S service with rotor on 10 satellites and DVB-T cards.
I could only have a fraction of the picons matched, as there are no specific picons for some of the hungarian services, is this true?
RE: Picons support (was: Helper script: matchIcons.sh...) - Added by Prof Yaffle almost 10 years ago
Not entirely. I have a hybrid DVB-T/S setup, and use picons for everything that I could easily match - then use file:// directives for the remaining ones.
If you tell tvh to use picons, you should see the path it's expecting for each channel (e.g. picon://1_0_1_5700_5040_233A_EEEE0000_0_0_0.png). I failed to find any documentation on the syntax/format here, though, so - while I can roughly see how it works for -S - I'm clueless as to how it works for -T or -C. It may be that it doesn't, it just uses what would be the satellite parameters for the equivalent station on any carrier (even if you're unable to point to that satellite).
If you have icons that you want to use, you can create your own picon packs from existing graphics. That's how you'd address your last point: yes, you'll get holes, but you can fill them by creating your own or use file:// as above.