[gnome-music/playlists] fix duration and playback
- From: Eslam Mostafa <cseslam src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/playlists] fix duration and playback
- Date: Mon, 17 Jun 2013 14:31:32 +0000 (UTC)
commit 0425abcbd56178784d7b1dbaefcfb0a1dbfb980d
Author: Eslam Mostafa <me eslammostafa com>
Date: Mon Jun 17 16:31:21 2013 +0200
fix duration and playback
src/grilo.js | 2 +-
src/widgets.js | 1 -
2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/grilo.js b/src/grilo.js
index 625bae2..5e9702e 100644
--- a/src/grilo.js
+++ b/src/grilo.js
@@ -136,7 +136,7 @@ const Grilo = new Lang.Class({
Lang.bind(this, function(source, id, media) {
grilo.filesystem.browse(
media,
- [Grl.METADATA_KEY_ID, Grl.METADATA_KEY_TITLE, Grl.METADATA_KEY_ARTIST,
Grl.METADATA_KEY_CREATION_DATE],
+ [Grl.METADATA_KEY_ID, Grl.METADATA_KEY_TITLE, Grl.METADATA_KEY_ARTIST,
Grl.METADATA_KEY_CREATION_DATE, Grl.METADATA_KEY_DURATION],
options,
Lang.bind(this, callback, null));
}));
diff --git a/src/widgets.js b/src/widgets.js
index 834287f..a6b07d8 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -368,7 +368,6 @@ const SongsList = new Lang.Class({
_addItem: function(source, param, item) {
if (item == null)
return;
- log(item.get_duration());
this._offset += 1;
var iter = this._model.append();
if ((item.get_title() == null) && (item.get_url() != null)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]