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

Modified Files:
        interface.py __init__.py 
Log Message:
add 'database()' function to mimetypes

Index: interface.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/video/interface.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** interface.py        17 Nov 2004 19:43:42 -0000      1.8
--- interface.py        18 Dec 2004 18:08:42 -0000      1.9
***************
*** 50,54 ****
  # video imports
  from videoitem import VideoItem
! from database import *
  import fxdhandler
  
--- 50,54 ----
  # video imports
  from videoitem import VideoItem
! import database
  import fxdhandler
  
***************
*** 146,150 ****
                            file[len(os.path.join(parent.media.mountdir,"")):]
                  try:
!                     x.mplayer_options = discset_informations[file_id]
                  except KeyError:
                      pass
--- 146,150 ----
                            file[len(os.path.join(parent.media.mountdir,"")):]
                  try:
!                     x.mplayer_options = database.discset[file_id]
                  except KeyError:
                      pass
***************
*** 166,170 ****
          set informations for a diritem based on the content, etc.
          """
-         global tv_show_informations
          if not diritem.image and config.VIDEO_SHOW_DATA_DIR:
              base = vfs.basename(diritem.dir).lower()
--- 166,169 ----
***************
*** 172,177 ****
              diritem.image = util.getimage(name)
  
!         if tv_show_informations.has_key(vfs.basename(diritem.dir).lower()):
!             tvinfo = tv_show_informations[vfs.basename(diritem.dir).lower()]
              diritem.info.set_variables(tvinfo[1])
              if not diritem.image:
--- 171,176 ----
              diritem.image = util.getimage(name)
  
!         if database.tv_shows.has_key(vfs.basename(diritem.dir).lower()):
!             tvinfo = database.tv_shows[vfs.basename(diritem.dir).lower()]
              diritem.info.set_variables(tvinfo[1])
              if not diritem.image:
***************
*** 189,190 ****
--- 188,194 ----
                    _('Build video thumbnails for all items'),
                    False) ]
+ 
+ 
+     def database(self):
+         return database
+ 

Index: __init__.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/video/__init__.py,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** __init__.py 14 Sep 2004 20:05:19 -0000      1.36
--- __init__.py 18 Dec 2004 18:08:42 -0000      1.37
***************
*** 1,6 ****
  # -*- coding: iso-8859-1 -*-
! # -----------------------------------------------------------------------
! # __init__.py
! # -----------------------------------------------------------------------
  # $Id$
  #
--- 1,6 ----
  # -*- coding: iso-8859-1 -*-
! # 
-----------------------------------------------------------------------------
! # __init__.py - interface to video
! # 
-----------------------------------------------------------------------------
  # $Id$
  #
***************
*** 13,28 ****
  # Video plugins are also allowed to use VideoItem to create a new VideoItem
  #
! # Notes:
! # Todo:
! #
! # -----------------------------------------------------------------------
! # $Log$
! # Revision 1.36  2004/09/14 20:05:19  dischi
! # split __init__ into interface.py and database.py
  #
  #
- # -----------------------------------------------------------------------
- # Freevo - A Home Theater PC framework
- # Copyright (C) 2002 Krister Lagerstrom, et al.
  # Please see the file freevo/Docs/CREDITS for a complete list of authors.
  #
--- 13,23 ----
  # Video plugins are also allowed to use VideoItem to create a new VideoItem
  #
! # 
-----------------------------------------------------------------------------
! # Freevo - A Home Theater PC framework
! # Copyright (C) 2002-2004 Krister Lagerstrom, Dirk Meyer, et al.
  #
+ # First Edition: Dirk Meyer <[EMAIL PROTECTED]>
+ # Maintainer:    Dirk Meyer <[EMAIL PROTECTED]>
  #
  # Please see the file freevo/Docs/CREDITS for a complete list of authors.
  #
***************
*** 41,51 ****
  # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  #
! # ----------------------------------------------------------------------- */
  
  from interface import *
  
- # special database imports (please fix)
- from database import *
- 
  # used by video plugins
  from videoitem import VideoItem
--- 36,43 ----
  # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  #
! # 
-----------------------------------------------------------------------------
  
  from interface import *
  
  # used by video plugins
  from videoitem import VideoItem



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to