Difference between revisions of "Channel icons"

From MythTV Official Wiki
Jump to: navigation, search
 
(Add to category:howto)
(30 intermediate revisions by 16 users not shown)
Line 1: Line 1:
{{stub}}
+
=Channel Icon Download System=
<div style="margin: 1em; padding: 1em; background-color: lightblue; width: 42em;">
+
As of 0.21, MythTV includes a channel icon download system in ''mythtv-setup'' which will attempt to automatically download icons for channels in your database from services.mythtv.org. If it cannot find an icon it will present you with a list of options, an the ability to define your own search parameters.
http://www.lyngsat-logo.com/ and, feel free to update the SVN version of
 
the master_iconmap data to link to the appropriate icons so others may
 
benefit from your efforts. ;)
 
  
See http://svn.mythtv.org/trac/ticket/2365 for an example (the new patch
+
To configure icon downloading in mythtv-setup:
is post 0.20). You can do this even if you don't run SVN. Just do a
+
* run "mythtv-setup"
checkout with:
+
* select "Channel Editor"
 +
* click on "Icon Download"
 +
* select either "Download all icons.." or "Rescan for missing icons.."
  
svn co http://svn.mythtv.org/svn/trunk/mythtv/contrib/master_iconmap
+
==Universal Location==
 +
By default the icon will be downloaded to the '/home/<user>/.mythtv/channels' directory. This is not very friendly when you have multiple frontends and wish them all to share the icons. One method to get around this is to use a symlink for this directory that directs to a network located directory that all your frontends have access to, say '/var/mythtv/channels' for example.
  
Then edit data/{baseurl,callsigntonetwork,networktourl}.txt and test it
+
Before downloading the icons, do the following, or similar as per your distribution:
with:
 
  
./build_map.pl
+
<code><pre>
 +
rm ~/.mythtv/channels -rf
 +
sudo mkdir /var/mythtv/channels
 +
sudo chown <user>:<group> /var/mythtv/channels
 +
ln -s /var/mythtv/channels ~/.mythtv/channels
 +
</pre></code>
  
(in the master_iconmap directory)
+
You will want to run
 +
<code><pre>
 +
rm ~/.mythtv/channels -rf
 +
ln -s /var/mythtv/channels ~/.mythtv/channels
 +
</pre></code>
 +
for all the users that can run MythTV as well.
  
Then, run:
+
=Channel Icon Sources=
 +
One of the best sources of channel icons is http://www.lyngsat-logo.com/ .  There, you can browse the available icons and choose those appropriate for your system.  However, doing so can be a lot of work (requiring many page hits and a lot of time).  Once downloaded you should put the resulting JPEG files into .mythtv/channels/ for the user running the front-end.  To add them to a channel you will need to run mythtv-setup and go to the channel editor and specify the icon file name for each channel.
  
mythfilldatabase --reset-icon-map all
+
==International Channel Logos==
mythfilldatabase --import-icon-map master_iconmap.xml --update-icon-map
+
* [https://ash.ms/projects/channels Australia]
 +
* [http://www.documentjes.nl/linux/mythtv/icons/ Netherlands]
  
'''as the user who runs the mythfrontend program''' from the master_iconmap
+
[[Category:HOWTO]]
directory to test.  (Verify all your channels have icons.  If you test
 
with MythWeb, you'll have to delete MythWeb's icon cache with "rm
 
/var/www/htdocs/mythtv/data/tv_icons/*" (change path as appropriate)).
 
 
 
And, finally, run
 
 
 
svn diff > ~/master_iconmap-sky.patch
 
 
 
from the master_iconmap directory to create a patch for Trac.
 
 
 
Mike
 
</div>
 

Revision as of 08:20, 9 September 2012

Channel Icon Download System

As of 0.21, MythTV includes a channel icon download system in mythtv-setup which will attempt to automatically download icons for channels in your database from services.mythtv.org. If it cannot find an icon it will present you with a list of options, an the ability to define your own search parameters.

To configure icon downloading in mythtv-setup:

  • run "mythtv-setup"
  • select "Channel Editor"
  • click on "Icon Download"
  • select either "Download all icons.." or "Rescan for missing icons.."

Universal Location

By default the icon will be downloaded to the '/home/<user>/.mythtv/channels' directory. This is not very friendly when you have multiple frontends and wish them all to share the icons. One method to get around this is to use a symlink for this directory that directs to a network located directory that all your frontends have access to, say '/var/mythtv/channels' for example.

Before downloading the icons, do the following, or similar as per your distribution:

rm ~/.mythtv/channels -rf
sudo mkdir /var/mythtv/channels
sudo chown <user>:<group> /var/mythtv/channels
ln -s /var/mythtv/channels ~/.mythtv/channels

You will want to run

rm ~/.mythtv/channels -rf
ln -s /var/mythtv/channels ~/.mythtv/channels

for all the users that can run MythTV as well.

Channel Icon Sources

One of the best sources of channel icons is http://www.lyngsat-logo.com/ . There, you can browse the available icons and choose those appropriate for your system. However, doing so can be a lot of work (requiring many page hits and a lot of time). Once downloaded you should put the resulting JPEG files into .mythtv/channels/ for the user running the front-end. To add them to a channel you will need to run mythtv-setup and go to the channel editor and specify the icon file name for each channel.

International Channel Logos