[rhythmbox] context: rework lyrics tab to use extra metadata requests



commit 81d3c078aef3f32c41b245e760590f40315d2d1d
Author: Jonathan Matthew <jonathan fibula d14n org>
Date:   Sat Oct 31 20:00:02 2009 +1000

    context: rework lyrics tab to use extra metadata requests
    
    While this requires that the lyrics plugin is enabled for the tab
    to work, it's nicer than having a copy of the lyrics fetching code
    in here.

 plugins/context/context/ContextView.py      |    2 +-
 plugins/context/context/LeoslyricsParser.py |  115 ---------------------------
 plugins/context/context/LyrcParser.py       |   86 --------------------
 plugins/context/context/LyricsParse.py      |   67 ----------------
 plugins/context/context/Makefile.am         |    3 -
 5 files changed, 1 insertions(+), 272 deletions(-)
---
diff --git a/plugins/context/context/ContextView.py b/plugins/context/context/ContextView.py
index 31aa688..dec3738 100644
--- a/plugins/context/context/ContextView.py
+++ b/plugins/context/context/ContextView.py
@@ -138,7 +138,7 @@ class ContextView (gobject.GObject) :
         self.ds['album']    = abt.AlbumDataSource()
         self.view['album']  = abt.AlbumView(self.shell, self.plugin, self.webview, self.ds['album'])
         self.tab['album']   = abt.AlbumTab(self.shell, self.buttons, self.ds['album'], self.view['album'])
-        self.ds['lyrics']   = lt.LyricsDataSource ()
+        self.ds['lyrics']   = lt.LyricsDataSource (self.db)
         self.view['lyrics'] = lt.LyricsView (self.shell, self.plugin, self.webview, self.ds['lyrics'])
         self.tab['lyrics']  = lt.LyricsTab (self.shell, self.buttons, self.ds['lyrics'], self.view['lyrics'])
 
diff --git a/plugins/context/context/Makefile.am b/plugins/context/context/Makefile.am
index 01705ee..6e34d17 100644
--- a/plugins/context/context/Makefile.am
+++ b/plugins/context/context/Makefile.am
@@ -5,9 +5,6 @@ plugin_PYTHON = 			\
 	AlbumTab.py			\
 	ArtistTab.py			\
 	ContextView.py			\
-	LeoslyricsParser.py		\
-	LyrcParser.py			\
-	LyricsParse.py			\
 	LyricsTab.py			\
 	__init__.py
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]