After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 569009 - [jamendo] Durations not properly loaded
[jamendo] Durations not properly loaded
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: Plugins (other)
0.11.x
Other Linux
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
: 570229 579349 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-01-24 19:05 UTC by Kim Sullivan
Modified: 2009-04-21 13:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kim Sullivan 2009-01-24 19:05:46 UTC
Jamendo has upgraded their database dump format. Because of this, the duration of a song is not loaded properly (it used to be in lengths attribute of the track element, now it is in a sub-element called duration). As a consequence of this, all durations are "unknown", and last.fm scrobbling stopped working (because a track has to have at least 30s).

Note that the duration sub element is undocumented for some reason, it's present in the dump, but not mentioned in the documentation on http://developer.jamendo.com/en/wiki/NewDatabaseDumps
Comment 1 Kim Sullivan 2009-01-24 22:31:59 UTC
In addition, jamendo ocassionally has floating point values in the duration, and the simple conversion using int() will throw an exception. The magnatunes plug-in has a special parse_int() function in TrackListHandler.py for this:

# parses partial integers
def parse_int(s):
	news = ""
	for c in s:
		if c in '0123456789': # only positive integers allowed
			news += c
		else:
			break
	return int(news)
Comment 2 Jonathan Matthew 2009-01-25 01:27:07 UTC
2009-01-25  Jonathan Matthew  <jonathan@d14n.org>

        * plugins/jamendo/jamendo/JamendoSource.py:
        Parse track durations, protect against finish_loadscreen() being
        called twice due to gnome-vfs weirdness.  Fixes #569009.
Comment 3 Jonathan Matthew 2009-02-02 22:12:28 UTC
*** Bug 570229 has been marked as a duplicate of this bug. ***
Comment 4 Jonathan Matthew 2009-04-21 13:08:29 UTC
*** Bug 579349 has been marked as a duplicate of this bug. ***