(no commit message)
[paste/456.git] / 0-patch.diff
index c0cc8db1e1b8a8988bf6c5f5adacd81f473921c7..22d8b46dce0a5e3b76cc70d70e65e2a3814d850a 100644 (file)
@@ -1,5 +1,5 @@
 diff --git a/plugins/lyrics/lyrics.py b/plugins/lyrics/lyrics.py
-index 13124b3..45b054a 100644
+index 13124b3..2ea38d6 100644
 --- a/plugins/lyrics/lyrics.py
 +++ b/plugins/lyrics/lyrics.py
 @@ -32,6 +32,7 @@ import urllib.request
@@ -10,7 +10,7 @@ index 13124b3..45b054a 100644
  
  import LyricsParse
  from LyricsConfigureDialog import LyricsConfigureDialog
-@@ -142,10 +143,36 @@ class LyricGrabber(object):
+@@ -142,10 +143,41 @@ class LyricGrabber(object):
  
        def verify_lyric(self):
                return os.path.exists(self.cache_path)
@@ -32,8 +32,13 @@ index 13124b3..45b054a 100644
 +
 +              for i in range(tags.get_tag_size("extended-comment")):
 +                      (exists, value) = tags.get_string_index("extended-comment", i)
++                      #ogg/vorbis unsynchronized lyrics
 +                      if exists and value.startswith("LYRICS"):
 +                              text = value.replace("LYRICS=", "")
++                              return text
++                      #ogg/vorbis synchronized lyrics
++                      elif exists and value.startswith("SYNCLYRICS"):
++                              text = value.replace("SYNCLYRICS=", "")
 +                              return text
          
        def search_lyrics(self, callback, cache_only=False):