# kontextsensitiver Export

**URL:** https://community.mp3tag.de/t/kontextsensitiver-export/1399
**Category:** Allgemein
**Created:** [October 16, 2004, 4:30pm UTC](https://community.mp3tag.de/t/kontextsensitiver-export/1399 "2004-10-16T16:30:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![stebbes](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/f08c70/32.png) [@stebbes](https://community.mp3tag.de/u/stebbes)
#### Post date: [October 16, 2004, 4:30pm UTC](https://community.mp3tag.de/t/kontextsensitiver-export/1399/1 "2004-10-16T16:30:41Z")

</div>

> [@](#):
>
> **$if(eql("%genre%", "Various Artists"), "%track%-%artist%-%title%", "%track%-%title%")**

Hi,  
ich versuche etwas ähnliches! Ich will meine MP3 Sammlung nach Alben sortieren lassen!

Meine Zeile lautet:

RECORDLINE02=$if(eql("%genre%", "Soundtrack"), "Various Artists", "%artist%")

Das Problem hier ist jetzt: lasse ich "%artist%" weg, so wird es gruppiert, so dass  
Artist (z.b. Various Artist) und das dazugehörige Album nur einmal dasteht!

Schreibe ich "%artist%" dazu werden "alle" Einträge erstellt! d.h. für alle Dateien des Albums steht jetzt eine Zeile mit "Various Artist" und Albumname!

Mische ich Soundtracks und "Normale" Alben, so werden die normalen richtig angezeigt (eine Zeile) und die Soundtracks haben wieder für jede Datei eine Zeile...

Ich bin am Verzweilfeln ☹

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [October 17, 2004, 11:37am UTC](https://community.mp3tag.de/t/kontextsensitiver-export/1399/2 "2004-10-17T11:37:30Z")

</div>

Ich glaube du kannst das lösen, wenn du deine Exportkonfiguration im **neuen Format** schreibts:

```
$filename("stebbes.html")
$loop("%_folderpath%")<td valign="top">$if(eql("%genre%", "Soundtrack"), "Various Artists", "%artist%")</td>

```

$loop("%\_filename\_ext%")$loopend()$loopend()

---

<div class="post-metadata">

### Author: ![stebbes](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/f08c70/32.png) [@stebbes](https://community.mp3tag.de/u/stebbes)
#### Post date: [October 17, 2004, 11:59am UTC](https://community.mp3tag.de/t/kontextsensitiver-export/1399/3 "2004-10-17T11:59:41Z")

</div>

Danke für den Tipp!  
Lieder verstehe ich den Code nicht so ganz..!  
Und leider liefert er das selbe ergebnis

Interpret\_\_\_\_\_\_\_Album\_\_\_\_\_\_\_\_\_\_\_Genre

Various Artists\_\_\_2 Fast 2 Furious\_\_\_Soundtrack  
12 Stones\_\_\_\_\_\_\_12 Stones\_\_\_\_\_\_\_Alt. Rock  
Various Artists\_\_\_2 Fast 2 Furious\_\_\_Soundtrack  
Various Artists\_\_\_2 Fast 2 Furious\_\_\_Soundtrack  
Various Artists\_\_\_2 Fast 2 Furious\_\_\_Soundtrack  
Various Artists\_\_\_2 Fast 2 Furious\_\_\_Soundtrack  
Various Artists\_\_\_2 Fast 2 Furious\_\_\_Soundtrack  
Various Artists\_\_\_2 Fast 2 Furious\_\_\_Soundtrack  
Various Artists\_\_\_2 Fast 2 Furious\_\_\_Soundtrack  
Various Artists\_\_\_2 Fast 2 Furious\_\_\_Soundtrack  
Various Artists\_\_\_2 Fast 2 Furious\_\_\_Soundtrack  
Various Artists\_\_\_2 Fast 2 Furious\_\_\_Soundtrack  
Various Artists\_\_\_2 Fast 2 Furious\_\_\_Soundtrack  
Various Artists\_\_\_2 Fast 2 Furious\_\_\_Soundtrack  
Various Artists\_\_\_2 Fast 2 Furious\_\_\_Soundtrack  
Various Artists\_\_\_2 Fast 2 Furious\_\_\_Soundtrack

Vielleicht hab ich auch was im Code falsch gemacht:

$loop("%\_folderpath%")  
[EXPORTRECORD]  
RECORDLINE01=

  
RECORDLINE02=$if(eql("%genre%", "Soundtrack"), "Various Artists", "%artist%")

$loop("%\_filename\_ext%")$loopend()$loopend()  
RECORDLINE03=

%album%  
RECORDLINE04=%genre%  
RECORDLINE05=

Danke für die Mühe schon mal 😃

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [October 17, 2004, 12:29pm UTC](https://community.mp3tag.de/t/kontextsensitiver-export/1399/4 "2004-10-17T12:29:19Z")

</div>

Habe das mal verschoben und neues Thema gemacht.  
Also, das neue Exportformat hat keine [EXPORTRECORD] Zeilen oder ähnliches mehr.  
Es funktioniert etwas anders nun. Beispiele kannst du hier sehen.  
In der Mp3tag-Hilfe wird es auch beschrieben. Wenn du damit noch nicht so zurechtkommst, kannst du auch deine ganze bisherige Konfiguration schreiben und ich werde sie dir ändern.  
PS: Gehe ich richtige davon aus, dass bei dir jedes Album einen eigenen Ordner hat?

---

<div class="post-metadata">

### Author: ![stebbes](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/f08c70/32.png) [@stebbes](https://community.mp3tag.de/u/stebbes)
#### Post date: [October 17, 2004, 1:27pm UTC](https://community.mp3tag.de/t/kontextsensitiver-export/1399/5 "2004-10-17T13:27:38Z")

</div>

AAAHHH!!

Jetzt hab ichs kapiert!  
Und jetzt funktionierts sogar!!! JUHU!!!

$loop("%\_folderpath%",1)

Was doch sone 1 alles bewirken kann!! 😃

Danke für die Mühe!!

Mp3tag ist übrigens super! Danke für diese Tolle Programm!

Stebbes ![:music:](https://community.mp3tag.de/uploads/default/original/1X/2ba05d1ade5eb0d15fc173be6f717dbe63890a70.gif ":music:")
