The branch, dharma-pre has been updated
       via  027288c3f2ae0de86ab2ad5ded4e09b3e4cfa7d6 (commit)
      from  358aeaaa2625c1ec6d7367912e853f58429aaabc (commit)

- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=027288c3f2ae0de86ab2ad5ded4e09b3e4cfa7d6

commit 027288c3f2ae0de86ab2ad5ded4e09b3e4cfa7d6
Author: Zeljko Ametovic <[email protected]>
Date:   Sun Oct 10 12:56:34 2010 +0400

    [script.cu.lyrics] v0.9.8
    - fixed: script wouldn't detect song change with .mp3 + .cue or .flac + 
.cue files. Thanks pike!

diff --git a/script.cu.lyrics/addon.xml b/script.cu.lyrics/addon.xml
old mode 100644
new mode 100755
index be2fc0f..6cbc16f
--- a/script.cu.lyrics/addon.xml
+++ b/script.cu.lyrics/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="script.cu.lyrics"
        name="CU Lyrics"
-       version="0.9.7"
+       version="0.9.8"
        provider-name="Amet">
   <requires>
     <import addon="xbmc.python" version="1.0"/>
diff --git a/script.cu.lyrics/changelog.txt b/script.cu.lyrics/changelog.txt
index 849f6f5..b83b80b 100644
--- a/script.cu.lyrics/changelog.txt
+++ b/script.cu.lyrics/changelog.txt
@@ -1,3 +1,6 @@
+0.9.8
+- fixed: script wouldn't detect song change with .mp3 + .cue or .flac + .cue 
files. Thanks pike!
+
 0.9.7
 - cosmetics
 
diff --git a/script.cu.lyrics/resources/lib/gui.py 
b/script.cu.lyrics/resources/lib/gui.py
old mode 100644
new mode 100755
index 52443fc..4ceefdd
--- a/script.cu.lyrics/resources/lib/gui.py
+++ b/script.cu.lyrics/resources/lib/gui.py
@@ -36,6 +36,7 @@ class GUI( xbmcgui.WindowXMLDialog ):
         self.fetchedLyrics = []
         self.current_song = Song.current()
         self.current_file = xbmc.Player().getPlayingFile()
+        self.song_info = xbmc.Player().getMusicInfoTag().getTitle()
 
     def onInit( self ):
         self.setup_all()
@@ -250,12 +251,9 @@ class GUI( xbmcgui.WindowXMLDialog ):
                 # if we need to do anything
                 self.show_prefetch_message(self.current_song)
                 xbmc.sleep( 750 )
-                playing_file = xbmc.Player().getPlayingFile()
-                print "self.current_file: %s" % (self.current_file)
-                print "self.current_song: %s" % (self.current_song)
-                print "playing_file: %s" % (playing_file)
-                if ( self.current_file != playing_file ):
-                    self.current_file = playing_file
+                playing_song = xbmc.Player().getMusicInfoTag().getTitle()
+                if ( self.song_info != playing_song ):
+                    self.song_info = playing_song
                     
                     # Unfortunately, calls to xbmc.getInfoLabel may return 
                     # information about the previous song for a while after
diff --git a/script.cu.lyrics/resources/settings.xml 
b/script.cu.lyrics/resources/settings.xml
index 5ef6a6a..382b99c 100644
--- a/script.cu.lyrics/resources/settings.xml
+++ b/script.cu.lyrics/resources/settings.xml
@@ -6,9 +6,4 @@
         <setting id="show_embeded_lyrics" type="bool" label="30107" 
default="true"/>
         <setting id="save_embeded_lyrics" type="bool" visible= "eq(-1,true)" 
enable="eq(-1,true)" label="30108" default="false"/>
     </category>
-    <category label="30103">
-        <setting id="version"   type="text" label="30104" default="0.9.4" 
enable="false" />
-        <setting id="author"    type="text" label="30105" default="Amet" 
enable="false" />
-        <setting id="origauthor"    type="text" label="30106" 
default="EnderW,Nuka1195" enable="false" />
-    </category>    
 </settings>

-----------------------------------------------------------------------

Summary of changes:
 script.cu.lyrics/addon.xml              |    2 +-
 script.cu.lyrics/changelog.txt          |    3 +++
 script.cu.lyrics/resources/lib/gui.py   |   10 ++++------
 script.cu.lyrics/resources/settings.xml |    5 -----
 4 files changed, 8 insertions(+), 12 deletions(-)
 mode change 100644 => 100755 script.cu.lyrics/addon.xml
 mode change 100644 => 100755 script.cu.lyrics/resources/lib/gui.py


hooks/post-receive
-- 
Scripts

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to