[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdemultimedia/noatun/modules/metatag
From: Stefan Gehn <sgehn () gmx ! net>
Date: 2003-05-24 8:47:33
[Download RAW message or body]
CVS commit by metz:
Tags can also have a length item, use it if there's no length set for the \
PlaylistItem yet. Handy if you add files to a playlist as you instantly know the \
(almost correct) length.
M +11 -0 metatag.cpp 1.17
--- kdemultimedia/noatun/modules/metatag/metatag.cpp #1.16:1.17
@@ -66,4 +66,15 @@ bool MetaTagLoader::update(PlaylistItem
return false;
+ if(item.length() == -1) // no value set, set almost correct id3tag time
+ {
+ KFileMetaInfoItem length_item = file_info.item("Length");
+ if(length_item.isValid())
+ {
+ int numVal = length_item.value().toInt();
+ if (numVal != 0)
+ item.setLength(numVal * 1000);
+ }
+ }
+
// Yes, this is icky. It maps KFileMetaInfo property names to Noatun's
setProperty(file_info, item, "Title", "title");
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic