From c8134e1cf570aa2dc1d213e93769b3a290fb58f2 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 30 May 2018 20:28:36 +0000 Subject: enabled all remaining plugins git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7982 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/mpris/mpris1/tracklistobject.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/plugins/General/mpris/mpris1/tracklistobject.cpp') diff --git a/src/plugins/General/mpris/mpris1/tracklistobject.cpp b/src/plugins/General/mpris/mpris1/tracklistobject.cpp index 740339c11..64b03bc51 100644 --- a/src/plugins/General/mpris/mpris1/tracklistobject.cpp +++ b/src/plugins/General/mpris/mpris1/tracklistobject.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2015 by Ilya Kotov * + * Copyright (C) 2008-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -84,17 +84,17 @@ QVariantMap TrackListObject::GetMetadata(int in0) if (track) { - if (track->url().contains("://")) - map.insert("location", track->url()); + if (track->path().contains("://")) + map.insert("location", track->path()); else - map.insert("location", "file://" + track->url()); + map.insert("location", "file://" + track->path()); map.insert("title", track->value(Qmmp::TITLE)); map.insert("artist", track->value(Qmmp::ARTIST)); map.insert("albumartist", track->value(Qmmp::ALBUMARTIST)); map.insert("album", track->value(Qmmp::ALBUM)); map.insert("tracknumber", track->value(Qmmp::TRACK)); - map.insert("time", (quint32)track->length()); - map.insert("mtime", (quint32)track->length() * 1000); + map.insert("time", (quint32)track->duration() / 1000); + map.insert("mtime", (quint32)track->duration()); map.insert("genre", track->value(Qmmp::GENRE)); map.insert("comment", track->value(Qmmp::COMMENT)); map.insert("year", track->value(Qmmp::YEAR).toUInt()); -- cgit v1.2.3-13-gbd6f