[mythtv-users] Trouble getting channel icons.

Michael T. Dean mtdean at thirdcontact.com
Tue Dec 18 17:45:14 UTC 2007


On 12/18/2007 03:07 AM, Marc Chamberlin wrote:
> Thanks again Mike, with yours and Daves help I think I am getting out of 
> the woods! ;-)  I have now managed to get a few of the network affiliate 
> icons to show up.

Great.

> Now I have a question - 
> Would it be possible to configure stations in the master_ iconmap.xml 
> file so that I can set the icon directly for a particular TV station 
> instead of using the network affiliation icon? For example would this be 
> legitimate? -
>
>     <callsigntonetwork>
>         <callsign>wkmg</callsign>
>         <url>[LyngSat]/tv/ww/wkmg_orlando.jpg</url>
>     </callsigntonetwork>
>   

Nope.

> That way I could set the icons to the logo used by TV stations that are not affiliated with one of the big networks...

As I mentioned before, the specific value of network is irrelevant.  It
only needs to be a unique value.  It's only purpose is to allow us to
reuse a <networktourl> mapping for multiple callsigns when appropriate. 
See http://www.gossamer-threads.com/lists/mythtv/dev/68805#68805 for a
quick description of why it exists.  So

<callsigntonetwork>
  <callsign>wkmg</callsign>
  <network>this/station/is/independent/of/networks</network>
</callsigntonetwork>
<networktourl>
  <network>this/station/is/independent/of/networks</network>
  <url>[LyngSat]/tv/ww/wkmg_orlando.jpg</url>
</networktourl>

would work.  Again:

The <network> simply has to be unique in the file and must match for the
<callsigntonetwork> and <networktourl> elements (so using a format as
derived from the URI will ensure uniqueness without having to search
through the file).

>  Just thought I would ask before experimenting and possibly breaking something. I haven't found any documentation on this xml file but perhaps it is hiding somewhere.. Anywise it sounds as if this approach is about to be deprecated so probably no matter...  ;-)

Yep.  Probably isn't much in the way of documentation (other than the
thread I just referenced), but it is going away.

Mike


More information about the mythtv-users mailing list