Author: dmeyer
Date: Thu Sep 13 15:08:58 2007
New Revision: 9878
Log:
remove dirinfo from media plugins, beacon takes care of that data
Modified:
trunk/ui/src/audio/interface.py
trunk/ui/src/directory.py
trunk/ui/src/menu/plugin.py
trunk/ui/src/video/interface.py
Modified: trunk/ui/src/audio/interface.py
==============================================================================
--- trunk/ui/src/audio/interface.py (original)
+++ trunk/ui/src/audio/interface.py Thu Sep 13 15:08:58 2007
@@ -96,26 +96,6 @@
return items
- def dirinfo(self, diritem):
- """
- set informations for a diritem based on the content, etc.
- """
- if not diritem.info.has_key('title') and diritem.parent:
- # ok, try some good name creation
- p_album = diritem.parent['album']
- p_artist = diritem.parent['artist']
- album = diritem['album']
- artist = diritem['artist']
-
- if artist and p_artist == artist and album and not p_album:
- # parent has same artist, but no album, but item has:
- diritem.name = album
-
- elif not p_artist and not p_album and not artist and album:
- # parent has no info, item no artist but album (== collection)
- diritem.name = album
-
-
def items(self, parent):
"""
MainMenuPlugin.items to return the audio item.
Modified: trunk/ui/src/directory.py
==============================================================================
--- trunk/ui/src/directory.py (original)
+++ trunk/ui/src/directory.py Thu Sep 13 15:08:58 2007
@@ -154,10 +154,6 @@
if self['show_all_items']:
# FIXME: no way to set this
self.media_type = None
-
- # Check media plugins if they want to add something
- for p in MediaPlugin.plugins(self.media_type):
- p.dirinfo(self)
def __getitem__(self, key):
Modified: trunk/ui/src/menu/plugin.py
==============================================================================
--- trunk/ui/src/menu/plugin.py (original)
+++ trunk/ui/src/menu/plugin.py Thu Sep 13 15:08:58 2007
@@ -101,13 +101,6 @@
return c
- def dirinfo(self, diritem):
- """
- set informations for a diritem based on the content, etc.
- """
- pass
-
-
def database(self):
"""
returns a database object
Modified: trunk/ui/src/video/interface.py
==============================================================================
--- trunk/ui/src/video/interface.py (original)
+++ trunk/ui/src/video/interface.py Thu Sep 13 15:08:58 2007
@@ -89,16 +89,6 @@
return items
- def dirinfo(self, diritem):
- """
- set informations for a diritem based on the content, etc.
- """
- if
database.tv_shows.has_key(os.path.basename(diritem.filename).lower()):
- tvinfo =
database.tv_shows[os.path.basename(diritem.filename).lower()]
- diritem.info.set_variables(tvinfo[1])
- if not diritem.image:
- diritem.image = tvinfo[0]
-
def database(self):
return database
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog