LinHES Forums
http://forum.linhes.org/

Missing Icons and Channel Descriptions
http://forum.linhes.org/viewtopic.php?f=11&t=9528
Page 1 of 1

Author:  jammad [ Fri Apr 07, 2006 9:04 pm ]
Post subject:  Missing Icons and Channel Descriptions

On my Listing page, it only shows the channel icon and description for 1 channel, all other just have the number and no icon. I rebuilt my machine from scratch with R5B7, and I remember all of the icons were there when I had A30.2 installed. I read other articles that said to run:

Code:
perl mkiconmap.pl


Code:
mythfilldatabase --import-icon-map iconmap.xml --update-icon-map


Which I have done multiple times as root with no success.

The one icon that does work is for the Hallmark Channel and the path to the icon is mythweb/data/tv_icons/odyssey.jpg. I have read some old posts stating that the icons are supposed to be somewhere else, a channels directory, but I am not sure if that is old info or not. I can't seem find that odyssey.jpg on my system, but I am sure I am not looking in the right place. Where are the channel icons located now in R5B7

Can anyone point me in the right direction on this one? I am sure I am missing something simple.

Author:  tjc [ Fri Apr 07, 2006 10:00 pm ]
Post subject: 

Wrong user. You should be mythtv to do this. Running mythfilldatabase (again as mythtv) may also help. Oh, and you may have to purge the old icons before it will work.

Author:  jammad [ Sat Apr 08, 2006 6:49 am ]
Post subject: 

Thanks for the feedback. I ran mythfilldatabase with the same results as mythtv. (below)

2006-04-08 08:46:29.837 Updating icons for sourceid: 1
2006-04-08 08:46:29.840 Marking repeats.
2006-04-08 08:46:30.436 Found 0
2006-04-08 08:46:30.437 Unmarking new episode rebroadcast repeats.
2006-04-08 08:46:30.939 Found 0
2006-04-08 08:46:31.181

So how do I purge the old icons?

Author:  ryanpatterson [ Sat Apr 08, 2006 7:34 am ]
Post subject: 

I've actually never had channel icons. where am I suppost to see them? In mythfrontend, mythweb, or both?

Author:  tjc [ Sat Apr 08, 2006 9:26 am ]
Post subject: 

Both. Anywhere you've got a program guide in the front end and on the listings page in the web interface. Also in the OSD when you change channels watching live TV. There is a set up option that may be affecting it if you aren't seeing any. I think it's under the tv program guide section or maybe appearance... Of course if you're only seeing one icon this obviously isn't the issue. ;-)

A search through old posts should find several by me about manually filling in your channel icons. Zap2it provides most of them, but apparently doesn't have icons for about 1/6th of my channels. I found a source listed in a MythTV:Users mailing list thread and worked out the commands to install them.

Actually a quick search over there turns up this thread which may be relevant to you:
http://www.gossamer-threads.com/lists/mythtv/users/141495

Author:  mjl [ Sat Apr 08, 2006 1:07 pm ]
Post subject: 

Hi,
I lost my icons on one of the installs /upgrades also. Wasn't a biggie so never really went to chase it untill motivated in this thread. I did find the big trick is that you need to run as user mythtv and actually is best if you stay in the mythtv home directory. It appears
perl mkiconmap.pl generates a list of needed icons based on what you have in the listings called iconmap.xml .
mythfilldatabase --import-icon-map iconmap.xml --update-icon-map reads the .xml file and fetches them. If you do not execute the perl script some where that mythtv user has permisions to write then the listing is empty and therefore no icons. I would also assume that there is mysql action being done and probably needs mythtv as access ?

When you finally have them, it is obvious :)

If you do less iconmap.xml after running the perl script, it should look something like this:
<?xml version="1.0" encoding="UTF-8"?>
<!-- generated by mkiconmap.pl -->
<iconmappings>
<callsigntonetwork>
<callsign>A-CALL-SIGN</callsign>
<network>dni_A-CALL-SIGN</network>
</callsigntonetwork>

~~~~ending with something like this (in us anyway)

<baseurl>
<stub>dni_zap2it</stub>
<url>http://tvlistings2.zap2it.com/tms_network_logos</url>
</baseurl>
</iconmappings>

Mike

Author:  ryanpatterson [ Sat Apr 08, 2006 1:30 pm ]
Post subject: 

mjl wrote:
It appears
perl mkiconmap.pl generates a list of needed icons based on what you have in the listings called iconmap.xml .
mythfilldatabase --import-icon-map iconmap.xml --update-icon-map reads the .xml file and fetches them.

Executed mkiconmap.pl fine. iconmap.xml looks great. I tried a few of the URL's it lists and they do indeed bring up icons for the channels.

Executed mythfilldatabase --import-icon-map iconmap.xml --update-icon-map and didn't see any errors. Here is my result:
Code:
mythtv@mythtv:~$ mythfilldatabase --import-icon-map iconmap.xml --update-icon-map
2006-04-08 15:21:12.196 Using runtime prefix = /usr
2006-04-08 15:21:12.263 New DB connection, total: 1
2006-04-08 15:21:12.266 Connected to database 'mythconverg' at host: localhost
2006-04-08 15:21:12.296 New DB connection, total: 2
2006-04-08 15:21:12.296 Connected to database 'mythconverg' at host: localhost
2006-04-08 15:21:12.297 mythfilldatabase: Listings Download Started
Importing icon mapping from iconmap.xml...
2006-04-08 15:21:12.329 New DB connection, total: 3
2006-04-08 15:21:12.330 Connected to database 'mythconverg' at host: localhost
2006-04-08 15:21:12.331 New DB connection, total: 4
2006-04-08 15:21:12.332 Connected to database 'mythconverg' at host: localhost
2006-04-08 15:21:12.388 New DB connection, total: 5
2006-04-08 15:21:12.389 Connected to database 'mythconverg' at host: localhost
2006-04-08 15:21:12.399 Updating icons for sourceid: 1
2006-04-08 15:21:12.401 Marking repeats.
2006-04-08 15:21:12.954     Found 0
2006-04-08 15:21:12.954 Unmarking new episode rebroadcast repeats.
2006-04-08 15:21:13.188     Found 0
2006-04-08 15:21:13.197
===============================================================
| Attempting to contact the master backend for rescheduling.  |
| If the master is not running, rescheduling will happen when |
| the master backend is restarted.                            |
===============================================================
2006-04-08 15:21:13.201 Connecting to backend server: 192.168.0.201:6543 (try 1 of 5)
2006-04-08 15:21:13.208 Using protocol version 26
2006-04-08 15:21:13.240 mythfilldatabase run complete.


But it doesn't seem do have done anything. There are no files in /home/mythtv/.icons. That is where they should be right? I executed everything as user:mythtv, and i deffently have full access to /home/mythtv/.icons.

Also I checked in mythfrontend setup and channel icons are enabled there.

Anything else to try?

Author:  mjl [ Sat Apr 08, 2006 1:55 pm ]
Post subject: 

Hi,
Maybe ls /home/mythtv/.mythtv/channels ? Should be a .jpg for each listing it can match.. Did you try hitting the O key while viewing tv? I just repeated the steps on a B install and all was well.

And that is about the limit of my knowledge :(
Mike

Author:  ryanpatterson [ Sat Apr 08, 2006 4:05 pm ]
Post subject: 

mjl wrote:
Maybe ls /home/mythtv/.mythtv/channels ?

Well that is weird. That directory has four jpg's in it. All for premium channels i don't get (HBO, TMC, etc). The file creation dates are June 2000 years before my instliation. The directory has writable permission so there shouldn't be a problem adding new files.

Author:  mjl [ Sat Apr 08, 2006 5:50 pm ]
Post subject: 

Hi,

Well, at least you found something. I wish I could assist further but I just don't know the innards that well yet. Hopefully one of the guys that have a better handle will jump in and educate us both.

Mike

Author:  jammad [ Sat Apr 08, 2006 7:18 pm ]
Post subject: 

I did find this recent thread, seems others have the issue as well.

http://www.gossamer-threads.com/lists/mythtv/users/194338?page=last

Author:  ryanpatterson [ Sat Apr 08, 2006 10:09 pm ]
Post subject: 

I just got my channel icons to work. For some reason almost all of my channels were missing their names (ie mythtv didn't know 3=CBS, 4=abc, etc). I removed all my listings in mythtv-setup and reselected them. When I ran mythfilldatabase agian it grabbed the channel names correctly. And the same iconmap.xml file worked correctly now.

I'm not sure why most all of my channels were missing their names. I'm not sure they were ever there to begin with. I've never cared to notice before.

Author:  jammad [ Sun Apr 09, 2006 6:22 am ]
Post subject: 

Yup, looks like that's going to work for me also. I went into mythweb - channel settings and changed the callsign to one of the channels to the correct callsign (made sure it matched an entry in the iconmap.xml file), reran the mythfilldatabase command to load the icons and the icon for the channel I changed appeared.

Nice job, thanks! The only thing I can think of is that this may have happened when I switched from us-cable to us-cable-irc and the rescanned for the channels. It's funny the only channel that had an icon before had a fine offset of 125 and the correct callsign. I had noticed all channels had this offset when I used the us-cable setting, when I changed to IRC the finetune offset was zero by default for all channels, (except the one that had a correct callsign and icon).

Author:  tjc [ Sun Apr 09, 2006 9:39 am ]
Post subject: 

When you make changes like that don't be shy about purging your channels and refetching the lineup. If you're in the US or Canada you should ONLY be using channel scan for the ATSC HDTV stuff.

Can one of you try to do a drunken monkey write up of the steps you had to do? (Meaning with detailed steps and cut & paste commands so that even a drunken monkey could follow it.) Thanks!

Author:  jammad [ Sun Apr 16, 2006 8:02 am ]
Post subject: 

OK, this is what I did:

Run the following command as the mythtv user:

Code:
perl mkiconmap.pl


Then I went into mythweb anc choose Settings - MythTV Channel Info

There I entered the correct Callsign for every channel (I made sure it matched exacty what was on zap2it)

Clicked "Save"

The I ran as the mythtv user:

Code:
mythfilldatabase --import-icon-map iconmap.xml --update-icon-map


And voila I had icons for most of the channels.

I still want to change some of the icons, and add icons for channels that do not have one. I have not been successful in doing that. I have read other threads and downloaded the appropriate icons, but can't seen to get them to appear. Also I noticed that when I watch TV the icon does not show. Not a big deal because I only use it as a recorder, but it kind of bugs me.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/