pyTivo Discussion Forum Forum Index pyTivo Discussion Forum
Answers and the development of pyTivo a TiVo transcoding server
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

photo module bug -- caching exif date

 
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Support
 View previous topic :: View next topic  
Author Message
tlc



Joined: 05 Jan 2008
Posts: 13

PostPosted: Tue Feb 26, 2008 1:20 pm    Post subject: photo module bug -- caching exif date Reply with quote

There's a caching bug in the photo module. The exif date is needed for the QueryContainer, but not retrieved and cached until send_file.

This results in the "Taken:" field on the Photo page showing as "unknown" unless you force resending of the Container by scrolling up or down on the Photos page or exiting and re-entering the Photos page.

-tlc
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 514

PostPosted: Tue Feb 26, 2008 3:31 pm    Post subject: Reply with quote

It's not a bug, just a limitation. (Documented, too -- at least in the original photo plugin thread on TCF.)

I could rewrite it so that the dates are available at QueryContainer time, but I doubt that it would be worthwhile. I'll think about it...

Edit: I'm still not liking it. Basically, I'd have to load each uncached image on a new page (four to twelve) just to get the date, and then throw them away, loading them again when it was time to generate the thumbnails -- because there's no way to tell what size the icon should be until it's requested. Which also means a separate cache just for the dates. Or else I'd have to cache the full 4-12 images until the icons were generated (i.e., quite a lot of memory) -- currently only one full image is ever loaded at a time (which can still be several megs).

_________________
My pyTivo fork
Back to top
View user's profile Send private message
tlc



Joined: 05 Jan 2008
Posts: 13

PostPosted: Tue Feb 26, 2008 8:56 pm    Post subject: Reply with quote

I understand not wanting to read the image twice.
FWIW, EXIF.py (http://sourceforge.net/projects/exif-py/) appears to read just the image headers to get the EXIF details.

-tlc
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Support All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Site is in NO WAY affiliated with TiVo Inc

Powered by phpBB © 2001, 2005 phpBB Group
phpBB SEO
[ Time: 0.4826s ][ Queries: 13 (0.3002s) ][ Debug on ]