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

Modified Files:
        imdb_info.py 
Log Message:
do not depend on xml_parser, the item has all infos in it

Index: imdb_info.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/video/plugins/imdb_info.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** imdb_info.py        16 Nov 2003 17:41:05 -0000      1.11
--- imdb_info.py        24 Nov 2003 19:21:04 -0000      1.12
***************
*** 15,18 ****
--- 15,21 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.12  2003/11/24 19:21:04  dischi
+ # do not depend on xml_parser, the item has all infos in it
+ #
  # Revision 1.11  2003/11/16 17:41:05  dischi
  # i18n patch from David Sagnol
***************
*** 21,37 ****
  # show info not only for files
  #
- # Revision 1.9  2003/09/14 03:19:42  outlyer
- # Fixed to accomodate changes in xml_parser.py; works again.
- #
- # Revision 1.8  2003/09/13 10:08:24  dischi
- # i18n support
- #
- # Revision 1.7  2003/08/30 12:21:13  dischi
- # small changes for the changed xml_parser
- #
- # Revision 1.6  2003/08/23 12:51:43  dischi
- # removed some old CVS log messages
- #
- #
  # -----------------------------------------------------------------------
  # Freevo - A Home Theater PC framework
--- 24,27 ----
***************
*** 64,71 ****
  import time
  
- from video import xml_parser
  from gui.AlertBox import AlertBox
  
- 
  class PluginInterface(plugin.ItemPlugin):        
  
--- 54,59 ----
***************
*** 83,98 ****
          show info for this item
          """
! 
!         file = self.item.xml_file
!         
!         if not file:
              box = AlertBox(text=_('There is no IMDB information for this file.'))
              box.show()
              return
  
!         infolist = xml_parser.parseMovieFile(file)
!         for info in infolist:
!             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()
!         return
  
--- 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()
  




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