From feaa958547eb18a9e445277de601c7512908e45e Mon Sep 17 00:00:00 2001 From: Martin Wagner Date: Mon, 25 May 2020 21:57:51 +0200 Subject: [PATCH] improved format of 'last-modified' --- bin/mpdevil.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/mpdevil.py b/bin/mpdevil.py index 9dbf8d5..5b014ba 100644 --- a/bin/mpdevil.py +++ b/bin/mpdevil.py @@ -2825,6 +2825,9 @@ class AudioType(Gtk.Button): for tag, value in song.items(): if tag == "time": self.store.append([tag+":", str(datetime.timedelta(seconds=int(value)))]) + elif tag == "last-modified": + time=datetime.datetime.strptime(value, '%Y-%m-%dT%H:%M:%SZ') + self.store.append([tag+":", time.strftime('%a %d %B %Y, %H:%M')]) else: self.store.append([tag+":", value]) self.treeview.show()