Help - Search - Members - Calendar
Full Version: How do you clear current outputto/say buffer?
Mp3tag Forums > Mp3tag - International > Development > Web Sources Discussion
Simian Jones
Is there a way to clear whatever you currently have in the say buffer? I'm looping through a series of XML tags and I only want the value from the last one. Here is what I have so far:


# Cover URL
do
outputto "coverurl"
findinline "<imageInstance>"
findinline "<url>"
sayuntil "</url>"
findinline "</imageInstance>"
while "<imageInstance>"

Only problem with this is that it keeps appending to coverurl when I'd rather it overwrite instead. I tried killtag "coverurl" inside the url but DO NOT try that, it locks mp3tag completely and you have to kill it from the Task Manager.

I'm sure I'm missing something obvoiusly, any help?
Florian
No, there currently is no way of resetting an output buffer.
Simian Jones
Bummer. In that case anyone have any good ideas on how to get just the last element in an unknown number of xml elements? I have this structure:

<imageinstance>
<url>http://www.monkey.com/image/a.jpg</url>
</imageinstance>
<imageinstance>
<url>http://www.monkey.com/image/f.jpg</url>
</imageinstance>
<imageinstance>
<url>http://www.monkey.com/image/g.jpg</url>
</imageinstance>
<imageinstance>
<url>http://www.monkey.com/image/b.jpg</url>
</imageinstance>

I only want the last <url>
Florian
The next build will address this issue.
Simian Jones
QUOTE (Florian @ Dec 28 2007, 06:19) *
The next build will address this issue.


It's great to hear this, thanks!
Florian
The current Development Build now has a new command

set "output name" "value"
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.