# Export geht nicht mehr

**URL:** https://community.mp3tag.de/t/export-geht-nicht-mehr/2002
**Category:** Allgemein
**Created:** [May 28, 2005, 9:27am UTC](https://community.mp3tag.de/t/export-geht-nicht-mehr/2002 "2005-05-28T09:27:15Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![mike8](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/df788c/32.png) [@mike8](https://community.mp3tag.de/u/mike8)
#### Post date: [May 28, 2005, 9:27am UTC](https://community.mp3tag.de/t/export-geht-nicht-mehr/2002/1 "2005-05-28T09:27:15Z")

</div>

hallo,

irgendwie klappt das nicht mehr mit dem Export...es kommt immer ein Syntax-Fehler. Dabei weiss ich nicht, was ich falsch gemacht habe, weil ich lediglich die neue md5 Variable eingebaut habe (aber selbst wenn ich diese wieder entferne geht der Export nicht mehr). Ich nutze mp3Tag 2.3.1

```
[EXPORTHEADER]
HEADERLINE01=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
HEADERLINE02=<html>
HEADERLINE03=<head>
HEADERLINE04=<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
HEADERLINE05=<title>Datei&uuml;bersicht</title>
HEADERLINE06=<style type="text/css"><!--
HEADERLINE07=h1 { font-family: Verdana; font-size: 14pt; color:#960000 }
HEADERLINE08=body { font-family: Verdana; font-size: 8pt; background:#FF9900 }
HEADERLINE09=table { font-family: Verdana; font-size: 9pt}
HEADERLINE10=a {color: #0033FF; text-decoration: none }
HEADERLINE11=a:hover {color: #FF0033; text-decoration: none}
HEADERLINE12=-->
HEADERLINE13=</style>
HEADERLINE14=</head>
HEADERLINE15=<body>
HEADERLINE16=<h1>Datei&uuml;bersicht</h1>
HEADERLINE17=

```

%\_date% / %\_app%

```
HEADERLINE18=<table border="0" width="100%">
HEADERLINE19=<tr bgcolor="#960000">
HEADERLINE20=<td><font color="#FF9900"><b>Interpret</b></font></td>
HEADERLINE21=<td><font color="#FF9900"><b>Titel</b></font></td>
HEADERLINE22=<td><font color="#FF9900"><b>Länge</b></font></td>
HEADERLINE23=<td><font color="#FF9900"><b>Album</b></font></td>
HEADERLINE24=<td><font color="#FF9900"><b>Track</b></font></td>
HEADERLINE25=<td><font color="#FF9900"><b>Jahr</b></font></td>
HEADERLINE26=<td><font color="#FF9900"><b>Genre</b></font></td>
HEADERLINE27=<td><font color="#FF9900"><b>Ordner</b></font></td>
HEADERLINE28=<td><font color="#FF9900"><b>Bitrate</b></font></td>
HEADERLINE29=<td><font color="#FF9900"><b>Mode</b></font></td>
HEADERLINE30=<td><font color="#FF9900"><b>Misc</b></font></td>
HEADERLINE31=<td><font color="#FF9900"><b>VBR</b></font></td>
HEADERLINE32=<td><font color="#FF9900"><b>MD5-Audio</b></font></td>
HEADERLINE33=</tr>

[EXPORTRECORD]
RECORDLINE01=<tr>
RECORDLINE02=<td>%artist%</td>
RECORDLINE03=<td>%title%</td>
RECORDLINE04=<td>%_length%</td>
RECORDLINE05=<td>%album%</td>
RECORDLINE06=<td>%track%</td>
RECORDLINE07=<td>%year%</td>
RECORDLINE08=<td>%genre%</td>
RECORDLINE09=<td>%_directory%</td>
RECORDLINE10=<td>%_bitrate%</td>
RECORDLINE11=<td>%_mode%</td>
RECORDLINE12=<td>%comment%</td>
RECORDLINE13=<td>%_vbr%</td>
RECORDLINE14=<td>%_md5audio%</td>
RECORDLINE15=</tr>

[EXPORTFOOTER]
FOOTERLINE01=</table>
FOOTERLINE02=

```

**Gesamte Spielzeit:** %\_total\_time%; **Gesamte Dateigrösse:** %\_total\_size%; **Gesamte Trackanzahl:** %\_total\_files%

```
FOOTERLINE03=</body>
FOOTERLINE04=</html>

[EXPORTSORT]
SORT=14 3 5

[EXPORTEXTENSION]
EXTENSION=html

```

Dann habe ich in die Hilfe geschaut und gelesen, dass es ein neues Export-Format gibt, aber auch dass funktioniert nicht:

```
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Datei&uuml;bersicht</title>
<style type="text/css"><!--
h1 { font-family: Verdana; font-size: 14pt; color:#960000 }
body { font-family: Verdana; font-size: 8pt; background:#FF9900 }
table { font-family: Verdana; font-size: 9pt}
a {color: #0033FF; text-decoration: none }
a:hover {color: #FF0033; text-decoration: none}
-->
</style>
</head>
<body>
<h1>Datei&uuml;bersicht</h1>

```

%\_date% / %\_app%

```
<table border="0" width="100%">
<tr bgcolor="#960000">
<td><font color="#FF9900"><b>Interpret</b></font></td>
<td><font color="#FF9900"><b>Titel</b></font></td>
<td><font color="#FF9900"><b>Länge</b></font></td>
<td><font color="#FF9900"><b>Album</b></font></td>
<td><font color="#FF9900"><b>Track</b></font></td>
<td><font color="#FF9900"><b>Jahr</b></font></td>
<td><font color="#FF9900"><b>Genre</b></font></td>
<td><font color="#FF9900"><b>Ordner</b></font></td>
<td><font color="#FF9900"><b>Bitrate</b></font></td>
<td><font color="#FF9900"><b>Mode</b></font></td>
<td><font color="#FF9900"><b>Misc</b></font></td>
<td><font color="#FF9900"><b>VBR</b></font></td>
<td><font color="#FF9900"><b>MD5-Audio</b></font></td>
</tr>

$loop(%feldname%)
<tr>
<td>%artist%</td>
<td>%title%</td>
<td>%_length%</td>
<td>%album%</td>
<td>%track%</td>
<td>%year%</td>
<td>%genre%</td>
<td>%_directory%</td>
<td>%_bitrate%</td>
<td>%_mode%</td>
<td>%comment%</td>
<td>%_vbr%</td>
<td>%_md5audio%</td>
</tr>
$loopend()

</table>

```

**Gesamte Spielzeit:** %\_total\_time%; **Gesamte Dateigrösse:** %\_total\_size%; **Gesamte Trackanzahl:** %\_total\_files%

```
</body>
</html>

```

danke

p.s.: Wie kann ich im neuen Export-Format folgende Sortierung erreichen: SORT=14 3 5 ?

p.s.2: Ich finde es schade, dass die Option "keine doppelten Einträge", nicht mehr im neuen Export Fomat funktioniert.

p.s.3: Dein Programm ist super!

---

<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: [May 28, 2005, 9:55am UTC](https://community.mp3tag.de/t/export-geht-nicht-mehr/2002/2 "2005-05-28T09:55:04Z")

</div>

Natürlich funktioniert das alte noch, du musst nur die Hinweise in der Hilfe beachten.  
Gewisse Zeichen müssen nun "escaped" werden.  
Änder einfach die Zeile

```
HEADERLINE18=<table border="0" width="100%">

```

in

```
HEADERLINE18=<table border="0" width="100%%">

```

Die Option "keine doppelten Einträge" ist im neuen Format überflüssig.  
Am Besten die Beispiele anschauen.  
[/t/1495/1](https://community.mp3tag.de/t/1495/1)

---

<div class="post-metadata">

### Author: ![mike8](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/df788c/32.png) [@mike8](https://community.mp3tag.de/u/mike8)
#### Post date: [May 28, 2005, 3:10pm UTC](https://community.mp3tag.de/t/export-geht-nicht-mehr/2002/3 "2005-05-28T15:10:03Z")

</div>

ok, vielen Dank 🙂

---

<div class="post-metadata">

### Author: ![mike8](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/df788c/32.png) [@mike8](https://community.mp3tag.de/u/mike8)
#### Post date: [May 28, 2005, 9:56pm UTC](https://community.mp3tag.de/t/export-geht-nicht-mehr/2002/4 "2005-05-28T21:56:20Z")

</div>

> [@](#):
>
> Wie kann ich im neuen Export-Format folgende Sortierung erreichen: SORT=14 3 5 ?
> 
> \<{POST\_SNAPBACK}\>

ich zitiere mich ja ungern selber, aber dieses Problem konnte ich immer nochnicht lösen...☹

---

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [May 29, 2005, 6:20am UTC](https://community.mp3tag.de/t/export-geht-nicht-mehr/2002/5 "2005-05-29T06:20:02Z")

</div>

> [@](#):
>
> ich zitiere mich ja ungern selber, aber dieses Problem konnte ich immer nochnicht lösen...☹
> 
> \<{POST\_SNAPBACK}\>

$loop(%\_folderpath%)  
$loop(%artist%)  
$loop(%track%)  
...  
$loopend()  
$loopend()  
$loopend()

---

<div class="post-metadata">

### Author: ![mike8](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/df788c/32.png) [@mike8](https://community.mp3tag.de/u/mike8)
#### Post date: [May 29, 2005, 8:42am UTC](https://community.mp3tag.de/t/export-geht-nicht-mehr/2002/6 "2005-05-29T08:42:46Z")

</div>

> [@](#):
>
> $loop(%\_folderpath%)  
> $loop(%artist%)  
> $loop(%track%)  
> ...  
> $loopend()  
> $loopend()  
> $loopend()
> 
> \<{POST\_SNAPBACK}\>

danke das geht soweit. Leider geht das jetzt aber nicht mehr mit den abwechselnden Farben:

```
$loop(%_folderpath%)
$loop(%artist%)
$loop(%track%)
<tr$if($odd(%_counter%), bgcolor="#ffddaa", bgcolor="#f0f0f0")>

```

vorher sah der Code so aus:

```
$loop(%_folderpath%)
<tr$if($odd(%_counter%), bgcolor="#ffddaa", bgcolor="#f0f0f0")>

```

hast du dazu auch die Antwort? 🙂

---

<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: [May 29, 2005, 9:22am UTC](https://community.mp3tag.de/t/export-geht-nicht-mehr/2002/7 "2005-05-29T09:22:57Z")

</div>

Bitte auch mal die Suchfunktion benutzen.  
[/t/1676/1](https://community.mp3tag.de/t/1676/1)

---

<div class="post-metadata">

### Author: ![mike8](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/df788c/32.png) [@mike8](https://community.mp3tag.de/u/mike8)
#### Post date: [May 29, 2005, 11:40am UTC](https://community.mp3tag.de/t/export-geht-nicht-mehr/2002/8 "2005-05-29T11:40:44Z")

</div>

> [@](#):
>
> Bitte auch mal die Suchfunktion benutzen.  
> [/t/1676/1](https://community.mp3tag.de/t/1676/1)
> 
> \<{POST\_SNAPBACK}\>

danke für den Link, aber so richtig blicke ich bei dem "workaround" nicht durch ☹

---

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [May 29, 2005, 1:53pm UTC](https://community.mp3tag.de/t/export-geht-nicht-mehr/2002/9 "2005-05-29T13:53:55Z")

</div>

> [@](#):
>
> danke für den Link, aber so richtig blicke ich bei dem "workaround" nicht durch ☹
> 
> \<{POST\_SNAPBACK}\>

Was genau verstehst du nicht?

Bevor die Schleifen ausgeführt werden, erhält die Variable "cnt" den Wert 0. Bei jedem Durchgang der inneren Schleife wird der Wert inkrementiert (also +1). Wenn der Wert von "cnt" sich nicht ohne Rest durch 2 teilen lässt (sorry, wegen der Hitze fällt mir das deutsche Wort nicht ein 😆), wird der Zelle die Klasse "table2" zugewiesen, ansonsten "table1" (das Gleiche wie "\<tr$if($odd(%\_counter%), bgcolor="#ffddaa", bgcolor="#f0f0f0")\>", jedoch wird eine CSS-Klasse für die Darstellung benutzt).

---

<div class="post-metadata">

### Author: ![mike8](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/df788c/32.png) [@mike8](https://community.mp3tag.de/u/mike8)
#### Post date: [May 30, 2005, 7:00am UTC](https://community.mp3tag.de/t/export-geht-nicht-mehr/2002/10 "2005-05-30T07:00:42Z")

</div>

> [@](#):
>
> Was genau verstehst du nicht?
> 
> Bevor die Schleifen ausgeführt werden, erhält die Variable "cnt" den Wert 0. Bei jedem Durchgang der inneren Schleife wird der Wert inkrementiert (also +1). Wenn der Wert von "cnt" sich nicht ohne Rest durch 2 teilen lässt (sorry, wegen der Hitze fällt mir das deutsche Wort nicht ein 😆), wird der Zelle die Klasse "table2" zugewiesen, ansonsten "table1" (das Gleiche wie "\<tr$if($odd(%\_counter%), bgcolor="#ffddaa", bgcolor="#f0f0f0")\>", jedoch wird eine CSS-Klasse für die Darstellung benutzt).
> 
> \<{POST\_SNAPBACK}\>

ich verstehe nur Bahnhof ![:unsure:](https://community.mp3tag.de/uploads/default/original/1X/cfaeba84fe6704387c5b34dfdd8172bd51b6f533.gif ":unsure:") Irgendwie müsste man das einfacher machen...ich habe keine Ahnung von Programiersprachen...also wie geht das bei folgendem Template -\> [http://www.anytag.de/download/export/html\_dano\_cd2html.html](http://www.anytag.de/download/export/html_dano_cd2html.html) - nur eben mit diesen Loops:

```
$loop(%_folderpath%)
$loop(%artist%)
$loop(%track%)
...
$loopend()
$loopend()
$loopend()

```

danke

---

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [May 30, 2005, 11:59am UTC](https://community.mp3tag.de/t/export-geht-nicht-mehr/2002/11 "2005-05-30T11:59:33Z")

</div>

Ich glaube so:

```
$filename(%artist%-%album%_dano_cd2.html)<html>
<head>
  <title>%artist% - %album%</title>
  <style type="text/css">
  <!-- 
    a { color:#000000; font-size:12px; font-family: Arial; }
    a:link { color:#000000; }
    a:visited { color:#444444; }
    a:active { color:#cc0000; }
    a:hover { color:#ffffff; background:#000000; }
    p { color: #000000; font-size:12px; font-family: Arial; }
    body { background: #ffffff; color: #000000; }
    h1 { font-size:18pt; font-family: Arial; font-weight: normal; text-align: center; }
    td { text-align: left; vertical-align: top; font-size:12px; font-family: Arial; }
    th { text-align: left; font-size:12px; font-family: Arial; background: #ff6600; color: #ffffff; }
    td.small { text-align: left; font-size:10px; font-family: Arial; }
  //-->
  </style>
</head>
<body>
<center>
<h1>%artist% - %album%</h1>
<p>
<table border="0" cellpadding="5" cellspacing="0" bgcolor="#ffcc99">
<tr><td>
<table border="0" cellpadding="1" cellspacing="0" bgcolor="#ff6600">
<tr><td>
<table border="0" cellpadding="3" cellspacing="1" bgcolor="#ffffff">
<th width="220">Filename</th><th width="220">ID3-Details</th><th width="220">mp3-Details</th><th width="60">Duration</th><th width="60">Filesize</th>
$puts(cnt,0)
$loop(%_folderpath%)
$loop(%artist%)
$loop(%track%)<tr$if($odd($get(cnt)), bgcolor="#ffddaa", bgcolor="#f0f0f0")>
  <td>
    <A HREF="file:///$replace(%_path%,\,/)">%_filename_ext%</A>
  </td>
  <td class="small">
    %artist% &quot;%title%&quot;

    Album: %album%, %year%

    Comment: %comment%

    Genre: %genre%

  </td>
  <td class="small" width="140">
    %_bitrate% %_codec%

    %_mode%, %_samplerate% Hz

    Tags: %_tag% Size: %_tag_size%
  </td>
  <td>
   %_length% min
  </td>
  <td>
    %_file_size%
  </td>
</tr>$puts(cnt,$add($get(cnt),1))
$loopend()$loopend()$loopend()
</table>
</td></tr>
</table>
</td></tr>
</table>
<p>
<hr size="1">
<p>
Created by <A HREF="http://www.mp3tag.de">%_app%</A> (© 1999-2004, <A HREF="mailto:support@mp3tag.de">Florian Heidenreich</A>)

Template Design from <b>www.cd2html.de</b>
</body>
</html>
```

---

<div class="post-metadata">

### Author: ![mike8](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/df788c/32.png) [@mike8](https://community.mp3tag.de/u/mike8)
#### Post date: [May 30, 2005, 4:28pm UTC](https://community.mp3tag.de/t/export-geht-nicht-mehr/2002/12 "2005-05-30T16:28:27Z")

</div>

genial! Das hat geklappt. vielen dank
