[mythtv-users] SOLVED: cannot get mkiconmap.pl to download icons

SF Basilix sf_basilix at yahoo.com
Fri Jun 16 01:28:03 UTC 2006


For anyone else who was trying to get this to work,
there is a fix.  Mythtv's mkiconmap.pl script actually
calls XMLTV's tv_grab_na_icons.  It was actually this
script that was using the old web-page's format, not
mkiconmap.pl.  The developers for XMLTV have quickly
fixed this code to reflect the changes on zap2it's
website. (Thanks!) So to fix this, you have to
download the new code found here: 
http://snapshot.xmltv.org

For those who have installed mythtv from packages,
you'll need to do a few things first.  Before you can
do anything with this, perl will need some modules to
get this compiled correctly (XML::Writer and
XML::Twig, if you don't already have them installed). 
For those who would like to use Perl's CPAN, run this:

# perl -MCPAN -eshell

(go through the questions if it's the first time you
are running this.  If you're not sure what answers to
provide, go with the defaults)

Once you get through all the questions, you should see
a cpan> prompt.  Next,

cpan> install XML::Writer
cpan> install XML::Twig
cpan> quit

Now go ahead and untar/uncompress the file downloaded
above and run:

perl Makefile.PL
make
make test
make install

Now you can run the mkiconmap.pl script and then
import it into the database. (sample below)

$ mkiconmap.pl --grab --share=/tmp --out=iconmap.xml
$ mythfilldatabase --import-icon-map iconmap.xml
-update-icon-map

Works like a charm.

Thanks All!!!
SF


--- SF Basilix <sf_basilix at yahoo.com> wrote:

> Hello,
> 
> I seem to be having a problem when attempting to
> download the station icons for mythtv - running
> version 0.19 on Fedora Core 4. Every time I run the
> perl script mkiconmap.pl (tried it as both the
> mythtv
> user and root) it just keeps returning the
> following:
> 
> $ mkiconmap.pl
> Calling tv_grab_na_icons...
> 
> Postal Code: <I enter my 5 digit postal code>
> Invalid Postal Code, try again
> 
> I can put in any postal code, and it just returns
> the
> same error. Since I used yum to install mythtv, I
> also
> downloaded the source code and ran the one that is
> in
> the contrib directory - still same thing.
> 
> I do have xmltv installed (xmltv-0.5.43-66.rhfc4.at)
> and have both the firewall and selinux disabled.
> 
> Am I missing some packages or settings in order to
> do
> this? Zap2It found my postal code fine when I
> registered on the website and found my cable
> provider
> with no issues, but for some reason this script
> keeps
> saying invalid postal code?
> 
> Thanks in advance!
> SF
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the mythtv-users mailing list