[mythtv-users] ANNOUNCE: mythalsig v2.2 (Icon grabber)

Stephen Boddy stephen.boddy at btinternet.com
Tue May 9 11:32:02 EDT 2006


On Tuesday 09 May 2006 10:09, Cougar wrote:
> On Tue, 9 May 2006, Stephen Boddy wrote:
> > On Monday 08 May 2006 23:11, Cougar wrote:
> > > I have noticed that sometimes I don't get icon files and I don't know
> > > how to force it to download all missing files. For example, after I
> > > entered all icons (and skipped some), I got such output:
> > >
> > > Not retrieving icon 1 of 521. Either not changed or already cached.
> > > Not retrieving icon 2 of 521. Either not changed or already cached.
> > > ....
> > > Not retrieving icon 58 of 521. Either not changed or already cached.
> > > Not retrieving icon 59 of 521. Either not changed or already cached.
> > > Updating/replacing "ee" region file (regions/ee.pklz,468,247,52%)
> > > Updating/replacing "at" region file (regions/at.pklz,1667,555,33%)
> > > ....
> > >
> > > From database I get 8 AT channels:
> > >
> > > SQL-päring: SELECT icon FROM `channel` WHERE icon LIKE '%/at/%';
> > > /media/mythstorage/icons/at/orf2.jpg
> > > /media/mythstorage/icons/at/sat1_austria.jpg
> > > /media/mythstorage/icons/at/orf2.jpg
> > > /media/mythstorage/icons/at/sat1_austria.jpg
> > > /media/mythstorage/icons/at/go_tv.jpg
> > > /media/mythstorage/icons/at/tw1.jpg
> > > /media/mythstorage/icons/at/go_tv.jpg
> > > /media/mythstorage/icons/at/tw1.jpg
> > >
> > > but in disk I have only one:
> > >
> > > mythtv:~ > ls -l /media/mythstorage/icons/at/
> > > total 12
> > > drwxr-xr-x   2 mythtv users   33 2006-05-08 23:56 ./
> > > drwxr-xr-x  14 mythtv users  149 2006-05-08 23:35 ../
> > > -rw-r--r--   1 mythtv users 5078 2006-05-08 23:56 go_tv.jpg
> > > -rw-r--r--   1 mythtv users 3287 2006-05-08 23:24 none
> >
> > Are you saying that the option:
> >     -f, --force-update      Override the built in caching of the web
> > source.
> >
> > does not work for you? This should ignore cached web data and previously
> > downloaded logos. Or is the option description and document not explicit
> > enough and it confused you?
>
> Just tried this:
>
> ./mythalsig.py --regions ee,at,de,se,uk,fr,ru -f
>
> When it was asking channel icons I just pressed '.' to keep already
> entered names and skip channels that don't have logo. After that it just
> updates region files and thats all. No logo grabbing at all.
>
> > >From the look of your commands above, you are using the script directly
> > > on
> >
> > your myth box, and saving the icon files straight to
> > the /media/mythstorage/icons/at/ folder?
> >
> > What are your values of icon_dir_mythtv and icon_dir_local in the script?
> > If they are different you will have to manually move them from
> > icon_dir_local to icon_dir_mythtv.
>
> icon_dir_mythtv='/media/mythstorage/icons'
> icon_dir_local="icons"
>
> In local icons directory I see only cc subdirectories but no files at all.

OK, I think I see. When you skip a channel the code does not do anything for 
that channel. i.e. nothing is set as to where to retreive a new logo from. 
This is the "not changed" part of the scripts output. It sounds like you've 
done one run, set a load of icons and downloaded them, deleted the icons, 
then run a second time with the -f. If you then skip a channel, then the 
script does not know where to retrieve the icon from, hence your empty 
directories.

To get the effect you're after do the following SQL command:
UPDATE channels SET icon=NULL;

Now run the script and activate autospeed. It will then set all channels using 
the presets stored in the region file. It won't ask for input from you unless 
there is no preset. This will force the download of all icons.

For me skip is skip. It shouldn't do anything for that channel, so I'd say 
that logically it is operating correctly.

The -f will work to over write the existing icons, but only if you actually 
pick one from the menus available.

Hope this helps.
-- 
Steve Boddy


More information about the mythtv-users mailing list