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

Cougar mythtv at lost.data.ee
Wed May 10 01:24:27 EDT 2006


On Tue, 9 May 2006, Stephen Boddy wrote:

> 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.

Yes, sounds logical. Now I miss only a way to automatically skip channels 
with configured logos.

> 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.

After clearing icon file names I got all missing icons as well.

Btw, there was a typo in script or a problem with some logic. I attached 
patch. Without this local_file is just a directory without file name.

---
Cougar
-------------- next part --------------
--- mythalsig_v2_2.orig/mythalsig.py	2006-04-24 20:49:09.000000000 +0300
+++ mythalsig_v2_2/mythalsig.py	2006-05-10 08:18:12.000000000 +0300
@@ -315,7 +315,7 @@
                 local_folder=os.path.join(icon_dir_local, channel_set[3][0])
                 if not os.path.exists(local_folder):
                     os.makedirs(local_folder)
-                local_file=os.path.join(local_folder, os.path.basename(channel_set[2]))
+                local_file=os.path.join(local_folder, os.path.basename(channel_set[3][2]))
                 if os.path.exists(local_file):
                     local_file_timestamp=os.stat(local_file)[8]
                 else:


More information about the mythtv-users mailing list