Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29366/src/util

Modified Files:
        fxdimdb.py 
Log Message:
remove python imaging dep

Index: fxdimdb.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/fxdimdb.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** fxdimdb.py  8 Jul 2005 19:15:56 -0000       1.14
--- fxdimdb.py  1 Aug 2005 18:49:11 -0000       1.15
***************
*** 12,15 ****
--- 12,18 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.15  2005/08/01 18:49:11  dischi
+ # remove python imaging dep
+ #
  # Revision 1.14  2005/07/08 19:15:56  dischi
  # some config cleanup
***************
*** 81,84 ****
--- 84,88 ----
  import config 
  import util
+ import kaa.imlib2
  
  from kaa.metadata.disc.discinfo import cdrom_disc_id
***************
*** 158,161 ****
--- 162,167 ----
          req = urllib2.Request(url, txdata, txheaders)
          searchstring = name
+ 
+         log.info('search imdb')
          
          try:
***************
*** 243,246 ****
--- 249,253 ----
                          appended = True
              self.imdb_id_list = new_list
+         log.info('search imdb done')
          return self.imdb_id_list
      
***************
*** 251,254 ****
--- 258,262 ----
          self.imdb_id = id
          
+         log.info('set imdb id')
          url = 'http://us.imdb.com/Title?%s' % id
          req = urllib2.Request(url, txdata, txheaders)
***************
*** 262,265 ****
--- 270,274 ----
          self.parsedata(idpage, id)
          idpage.close()
+         log.info('set imdb id done')
  
      
***************
*** 780,790 ****
          
          # try to crop the image to avoid borders by imdb 
!         try:
!             import Image
!             image = Image.open(filename)
!             width, height = image.size
!             image.crop((2,2,width-4, height-4)).save(filename)
!         except:
!             pass
          
          self.image = os.path.basename(self.image)
--- 789,797 ----
          
          # try to crop the image to avoid borders by imdb 
!         if os.path.isfile(self.image):
!             image = kaa.imlib2.open(self.image)
!             if image:
!                 width, height = image.size
!                 image.crop((2,2), (width-4, height-4)).save(self.image)
          
          self.image = os.path.basename(self.image)



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to