summaryrefslogtreecommitdiff
path: root/nephilim/plugins/Lyrics.py
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-08-21 09:28:16 +0200
committerAnton Khirnov <wyskas@gmail.com>2009-08-21 09:28:16 +0200
commit4636982682d69c0fc5fea724344f02c94c6cb741 (patch)
tree6ea1151861297066c2b0517cbb25758da4a1213e /nephilim/plugins/Lyrics.py
parent7b9278975c57b57f651641cd4671c84ffc1edd02 (diff)
rename misc->common
Diffstat (limited to 'nephilim/plugins/Lyrics.py')
-rw-r--r--nephilim/plugins/Lyrics.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/nephilim/plugins/Lyrics.py b/nephilim/plugins/Lyrics.py
index 0c90e8c..15160d8 100644
--- a/nephilim/plugins/Lyrics.py
+++ b/nephilim/plugins/Lyrics.py
@@ -23,7 +23,7 @@ import re
from lxml import etree
from ..plugin import Plugin
-from .. import misc
+from .. import common
class LyricsWidget(QtGui.QWidget):
#public
@@ -140,7 +140,7 @@ class Lyrics(Plugin):
elif self.__results >= len(self.__fetchers) and not self.o.lyrics_loaded:
self.o.set_lyrics(song, None)
- class FetchLyricwiki(misc.MetadataFetcher):
+ class FetchLyricwiki(common.MetadataFetcher):
name = 'Lyricwiki'
def fetch(self, song):
@@ -189,7 +189,7 @@ class Lyrics(Plugin):
lyrics += etree.tostring(elem, method = 'text', encoding = 'utf-8')
self.finish(lyrics)
- class FetchAnimelyrics(misc.MetadataFetcher):
+ class FetchAnimelyrics(common.MetadataFetcher):
name = 'Animelyrics'
def fetch(self, song):
@@ -246,7 +246,7 @@ class Lyrics(Plugin):
# store lyrics groupbox
self.store = QtGui.QGroupBox('Store lyrics.')
- self.store.setToolTip('Should %s store its own copy of lyrics?'%misc.APPNAME)
+ self.store.setToolTip('Should %s store its own copy of lyrics?'%common.APPNAME)
self.store.setCheckable(True)
self.store.setChecked(self.settings.value('store').toBool())
self.store.setLayout(QtGui.QGridLayout())
@@ -257,12 +257,12 @@ class Lyrics(Plugin):
'$musicdir will be expanded to path to MPD music library (as set by user)\n'
'$songdir will be expanded to path to the song (relative to $musicdir\n'
'other tags same as in lyricname'
- %misc.APPNAME)
+ %common.APPNAME)
self.lyricname = QtGui.QLineEdit(self.settings.value('lyricname').toString())
self.lyricname.setToolTip('Filename for %s lyricsfiles.\n'
'All tags supported by MPD will be expanded to their\n'
'values for current song, e.g. $title, $track, $artist,\n'
- '$album, $genre etc.'%misc.APPNAME)
+ '$album, $genre etc.'%common.APPNAME)
self.store.layout().addWidget(QtGui.QLabel('Lyrics directory'), 0, 0)
self.store.layout().addWidget(self.lyricdir, 0, 1)
self.store.layout().addWidget(QtGui.QLabel('Lyrics filename'), 1, 0)
@@ -333,7 +333,7 @@ class Lyrics(Plugin):
self.__lyrics_path = ''
return self.o.set_lyrics(None, None)
- (self.__lyrics_dir, self.__lyrics_path) = misc.generate_metadata_path(song,
+ (self.__lyrics_dir, self.__lyrics_path) = common.generate_metadata_path(song,
self.settings.value(self.name + '/lyricdir').toString(),
self.settings.value(self.name + '/lyricname').toString())
try:
@@ -370,7 +370,7 @@ class Lyrics(Plugin):
if not song:
path = self.__lyrics_path
else:
- path = misc.generate_metadata_path(song, self.settings.value(self.name + '/lyricdir').toString(),
+ path = common.generate_metadata_path(song, self.settings.value(self.name + '/lyricdir').toString(),
self.settings.value(self.name + '/lyricname').toString())
try: