Update of /cvsroot/freevo/freevo/src/video/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv13820

Modified Files:
        imdb_info.py 
Log Message:
fix crash for missing infos

Index: imdb_info.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/video/plugins/imdb_info.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** imdb_info.py        24 Nov 2003 19:21:04 -0000      1.12
--- imdb_info.py        1 Dec 2003 20:01:21 -0000       1.13
***************
*** 15,18 ****
--- 15,21 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.13  2003/12/01 20:01:21  dischi
+ # fix crash for missing infos
+ #
  # Revision 1.12  2003/11/24 19:21:04  dischi
  # do not depend on xml_parser, the item has all infos in it
***************
*** 71,82 ****
          show info for this item
          """
!         if not self.item.xml_file:
!             box = AlertBox(text=_('There is no IMDB information for this file.'))
!             box.show()
!             return
! 
!         info = self.item
! 
!         box = AlertBox(icon=info.image, width=550, height=400, text=_('%s\n \n \n  
%s\n \n \n----\n Year: %s\n Genre: %s\n Rating: %s\n Runtime: %s') % 
(info.name,info.info['plot'],info.info['year'],info.info['genre'],info.info['rating'],info.info['length']))
!         box.show()
! 
--- 74,81 ----
          show info for this item
          """
!         text='%s\n \n \n  %s\n \n \n----\n' % (self.item.name, 
self.item.getattr('plot'))
!         text += _(' Year: %s\n Genre: %s\n Rating: %s\n Runtime: %s') % \
!                 (self.item.getattr('year'), self.item.getattr('genre'),
!                  self.item.getattr('rating'),self.item.getattr('length'))
!         
!         AlertBox(icon=self.item.image, width=550, height=400, text=text).show()




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to