projects
/
profile
/
ivi
/
rygel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf6b494
)
tracker: Fall back to nfo:fileLastAccessed
author
Jens Georg
<mail@jensge.org>
Tue, 11 Oct 2011 17:54:31 +0000
(19:54 +0200)
committer
Jens Georg
<mail@jensge.org>
Wed, 12 Oct 2011 08:24:47 +0000
(10:24 +0200)
If nie:contentCreated is not available (for e.g. MP3 files without a
date tag), fall back to nfo:fileLastAccessed as the item's time.
src/plugins/tracker/rygel-tracker-key-chain-map.vala
patch
|
blob
|
history
diff --git
a/src/plugins/tracker/rygel-tracker-key-chain-map.vala
b/src/plugins/tracker/rygel-tracker-key-chain-map.vala
index
308153e
..
c4c1924
100644
(file)
--- a/
src/plugins/tracker/rygel-tracker-key-chain-map.vala
+++ b/
src/plugins/tracker/rygel-tracker-key-chain-map.vala
@@
-55,7
+55,9
@@
public class Rygel.Tracker.KeyChainMap : Object {
add_function ("res@size",
"tracker:coalesce(nfo:fileSize(%1$s)," +
"nie:byteSize(%1$s),\"\")");
- add_key_chain ("date", "nie:contentCreated");
+ add_function ("date",
+ "tracker:coalesce(nie:contentCreated(%1$s)," +
+ "nfo:fileLastAccessed(%1$s))");
// Music Item
add_key_chain ("res@duration", "nfo:duration");