The branch, gotham has been updated
via f2c3611f04429a9e1b8c7c140ceafbec38fb824c (commit)
from e655cf0514e9285e9ae69e4b7d642824ae909390 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=f2c3611f04429a9e1b8c7c140ceafbec38fb824c
commit f2c3611f04429a9e1b8c7c140ceafbec38fb824c
Author: ronie <ronie>
Date: Thu Jan 30 21:19:15 2014 +0100
plugin.audio.lastfm -v1.0.2
diff --git a/plugin.audio.lastfm/addon.xml b/plugin.audio.lastfm/addon.xml
index 4d38dd7..56fa96e 100644
--- a/plugin.audio.lastfm/addon.xml
+++ b/plugin.audio.lastfm/addon.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<addon id="plugin.audio.lastfm" name="Last.fm" version="1.0.1"
provider-name="Team-XBMC">
+<addon id="plugin.audio.lastfm" name="Last.fm" version="1.0.2"
provider-name="Team-XBMC">
<requires>
<import addon="xbmc.python" version="2.12.0"/>
</requires>
diff --git a/plugin.audio.lastfm/changelog.txt
b/plugin.audio.lastfm/changelog.txt
index 22db39e..f116276 100644
--- a/plugin.audio.lastfm/changelog.txt
+++ b/plugin.audio.lastfm/changelog.txt
@@ -1,3 +1,7 @@
+v1.0.2
+- get duration from xbmc.Player if the MusicInfoTag duration is invalid
+- fix potential crash due to invalid code
+
v1.0.1
- update language
diff --git a/plugin.audio.lastfm/scrobbler.py b/plugin.audio.lastfm/scrobbler.py
index c7c2839..2f6b7e3 100644
--- a/plugin.audio.lastfm/scrobbler.py
+++ b/plugin.audio.lastfm/scrobbler.py
@@ -189,7 +189,7 @@ class Main:
# check if there's anything left in the queue to scrobble (if we
started with more than 50 tracks)
if self.queue:
log('tracks left to scrobble', SESSION)
- self_lastfm_scrobble( self, tstamp )
+ self._lastfm_scrobble( tstamp )
# sync queue to disk
log('save file to disk', SESSION)
write_file(self.file, self.queue)
@@ -263,6 +263,9 @@ class MyPlayer(xbmc.Player):
album = self.getMusicInfoTag().getAlbum().decode("utf-8")
title = self.getMusicInfoTag().getTitle().decode("utf-8")
duration = str(self.getMusicInfoTag().getDuration())
+ # get duration from xbmc.Player if the MusicInfoTag duration is invalid
+ if int(duration) <= 0:
+ duration = str(int(self.getTotalTime()))
track = str(self.getMusicInfoTag().getTrack())
mbid = '' # musicbrainz id is not yet available
# get the track id if we're playing last fm radio
-----------------------------------------------------------------------
Summary of changes:
plugin.audio.lastfm/addon.xml | 2 +-
plugin.audio.lastfm/changelog.txt | 4 ++++
plugin.audio.lastfm/scrobbler.py | 5 ++++-
3 files changed, 9 insertions(+), 2 deletions(-)
hooks/post-receive
--
Plugins
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons