<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Alternatively, with the current GIT head (or wait for taglib-1.8)
you can do something like<br>
<br>
PropertyMap map = file->properties();<br>
int discnumber = -1;<br>
if (map.contains("DISCNUMBER")) {<br>
discnumber = map["DISCNUMBER"][0].toInt();<br>
}<br>
<br>
to access and <br>
<br>
map.replace("DISCNUMBER", "2");<br>
<br>
to set the tag.<br>
<br>
Michael<br>
<br>
<br>
Am 18.04.2012 16:42, schrieb Sander Jansen:
<blockquote
cite="mid:CACj81kELcqtOaaBuz_af5cn=6C+XPc5Q8G8WuD48BYcegpr=2A@mail.gmail.com"
type="cite"><br>
<br>
<div class="gmail_quote">On Wed, Apr 18, 2012 at 2:14 AM, Ruslan
Dragunov <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:sf_2000@mail.ru">sf_2000@mail.ru</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, Taglib-devel.<br>
<br>
Can I add DISK number using taglib?<br>
<span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote>
<div><br>
</div>
<div>Yes, but it requires some work on your part since each type
of tag requires a slightly different format. For example:</div>
<div>
<br>
</div>
<div><a moz-do-not-send="true"
href="http://code.google.com/p/gogglesmm/source/browse/src/GMTag.cpp#652">http://code.google.com/p/gogglesmm/source/browse/src/GMTag.cpp#652</a></div>
<div><br>
</div>
<div>Sander</div>
<div><br>
</div>
<div> </div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
taglib-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:taglib-devel@kde.org">taglib-devel@kde.org</a>
<a class="moz-txt-link-freetext" href="https://mail.kde.org/mailman/listinfo/taglib-devel">https://mail.kde.org/mailman/listinfo/taglib-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>