diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2018-05-30 20:28:36 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2018-05-30 20:28:36 +0000 |
| commit | c8134e1cf570aa2dc1d213e93769b3a290fb58f2 (patch) | |
| tree | c26295debb015bc3e3043455f99163073e002be5 /src/plugins/General/mpris/mpris1/tracklistobject.cpp | |
| parent | 4ab1964bb6cd90ef26e6d6060427038b88e0c37f (diff) | |
| download | qmmp-c8134e1cf570aa2dc1d213e93769b3a290fb58f2.tar.gz qmmp-c8134e1cf570aa2dc1d213e93769b3a290fb58f2.tar.bz2 qmmp-c8134e1cf570aa2dc1d213e93769b3a290fb58f2.zip | |
enabled all remaining plugins
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7982 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/mpris/mpris1/tracklistobject.cpp')
| -rw-r--r-- | src/plugins/General/mpris/mpris1/tracklistobject.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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()); |
