# Exporting doesn't work

**URL:** https://community.mp3tag.de/t/exporting-doesnt-work/14469
**Category:** Support
**Created:** [February 20, 2013, 11:14am UTC](https://community.mp3tag.de/t/exporting-doesnt-work/14469 "2013-02-20T11:14:56Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![gwenkillerby](https://community.mp3tag.de/user_avatar/community.mp3tag.de/gwenkillerby/32/407_2.png) [@gwenkillerby](https://community.mp3tag.de/u/gwenkillerby)
#### Post date: [February 20, 2013, 11:14am UTC](https://community.mp3tag.de/t/exporting-doesnt-work/14469/1 "2013-02-20T11:14:56Z")

</div>

How do I export the contents of the lyrics field (USLT?) to a textfile?

So, if the song:  
**U2-Please.mp3**   
contained lyrics there should be a textfile called:  
**U2-Please.txt**  
with the lyrics inside of course, preferably in the same directory or folder. Or, how do I make sure that it goes in the same directory?

1. How do I do that for several files (2,000) at once?  
I'd really like a CSV-file with the lyrics in one field or column, but so far I havent figured out how to do that.

Alternatively, could you explain how to copy the lyrics to the comment field?  
The info in the TAg -TAG section is so limited, I couldn't make it work.

Please be explicit with your answers, cos sadly, I need a lot of handholding. Pictures (dare I ask?) would be REALLY nice.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [February 20, 2013, 4:59pm UTC](https://community.mp3tag.de/t/exporting-doesnt-work/14469/2 "2013-02-20T16:59:38Z")

</div>

There is a tread that meanders around the problems when exporting data with linebreaks/linefeeds.  
[Backup and restore](https://community.mp3tag.de/t/6093/4)

As the lyrics field is one of these fields, the export of %unsyncedlyrics% to a text file falls in this general category.  
and if you dare to read German have a look at this thread - the code should be easy to identfy and that is what you need.  
[Wenn Export nach \*.csv ausgeführt wird -](https://community.mp3tag.de/t/14118/6)

---

<div class="post-metadata">

### Author: ![gwenkillerby](https://community.mp3tag.de/user_avatar/community.mp3tag.de/gwenkillerby/32/407_2.png) [@gwenkillerby](https://community.mp3tag.de/u/gwenkillerby)
#### Post date: [February 20, 2013, 10:43pm UTC](https://community.mp3tag.de/t/exporting-doesnt-work/14469/3 "2013-02-20T22:43:16Z")

</div>

reading german is kinda schiesse ...

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [February 21, 2013, 7:02am UTC](https://community.mp3tag.de/t/exporting-doesnt-work/14469/4 "2013-02-21T07:02:16Z")

</div>

It's actually spelled with ei instead of ie - like this it means "shoot". And AFAIK this kind of jargon is not welcome if you follow the forum guidelines.

You could have left out the German bits and just read the code - as the syntax is the same in any language..  
Unfortunately, you do not tell if the numerous lines of code helped you.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [February 21, 2013, 6:40pm UTC](https://community.mp3tag.de/t/exporting-doesnt-work/14469/5 "2013-02-21T18:40:33Z")

</div>

@ohrenkino: Weisst Du was seine/ihre [Antwort](http://forums.musicbrainz.org/viewtopic.php?pid=21206#p21206) im MusicBrainz-Forum ist?

> [@](#):
>
> ...but the mp3tag people told me in no uncertain terms that they wouldn't dirty themselves with such a backward thing as the Id3v1 format, they wouldn't wanna touch such lowly thing with a ten foot pole, and that mp3tag has no way of reading that tag.. **.They're a bunch of arrogant you-know-whatsies**

Nicht gerade die feine Art, oder?

@GwenkillRRRRbeee: Please don't complain about the people here in this forum on MusicBrainz (as "GwenKillerby"). I'm sure that you will find people who can help you. If you would see german speaking people yelling "shit" about some english answers, you would shake your head in disbelief too, right?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [February 21, 2013, 6:54pm UTC](https://community.mp3tag.de/t/exporting-doesnt-work/14469/6 "2013-02-21T18:54:08Z")

</div>

It would interesting to know which thread advised not to use V1 tags ... I mean if the basis is the use of lyrics then you would have to use V2.3 tags as V1 do not support UNSYNCEDLYRICS.  
Anyway: fact is that MP3tag does not support LyricsVx but only UNSYNCEDLYRICS

---

<div class="post-metadata">

### Author: ![gwenkillerby](https://community.mp3tag.de/user_avatar/community.mp3tag.de/gwenkillerby/32/407_2.png) [@gwenkillerby](https://community.mp3tag.de/u/gwenkillerby)
#### Post date: [February 21, 2013, 10:47pm UTC](https://community.mp3tag.de/t/exporting-doesnt-work/14469/7 "2013-02-21T22:47:43Z")

</div>

> [@ohrenkino](#):
>
> It's actually spelled with ei instead of ie - like this it means "shoot".

I spelled it correctly, you've jumped to a conclusion. Anyways, some parts of the Anglophone world say 'shoot' if they're too repressed to properly say 'shit'.

> [@](#):
>
> Unfortunately, you do not tell if the numerous lines of code helped you.

I am touched that you think I **found** the numerous lines of code, let alone could **read** the numerous lines of code, assuming I could recognize he numerous lines of code if I saw them... ☹ 😉😉

Seriously, I can read a bit of code and I've tried to use this script

```
$filename(Mp3tag.tagdump.col.txt,ANSI)$loop(%_path%)^
_UNSYNCEDLYRICS:''%_unsyncedlyrics%''
_MD5:''%_md5%''
_PATH:''%_path%''
$regexp($regexp($regexp($list(,:'',''$char(13)_$char(10)),\r,U+000D),\n,U+000A),\r_\n,\r\n)$$

$loopend()

```

and that worked, just not in the way I wanted it to work.

This was the output:

```
^
_UNSYNCEDLYRICS:''
_MD5:'4EA3BF0609D03377871A5D44F40A549B'
_PATH:'c:\@mp3\!!!!!!!!\000\005film\leonard cohen - everybody knows.mp3'
ALBUMARTIST:'leonard cohen'U+000D_U+000AARTIST:'leonard cohen'U+000D_U+000ATITLE:'everybody knows'U+000D_U+000AGENRE:'folk'U+000D_U+000AUNSYNCEDLYRICS:'eng||Everybody knows that the dice are loadedU+000DU+000AEverybody rolls with their fingers crossedU+000DU+000AEverybody knows that the war is overU+000DU+000AEverybody knows the good guys lostU+000DU+000AEverybody knows the fight was fixedU+000DU+000AThe poor stay poor, the rich get richU+000DU+000AThat's how it goesU+000DU+000AEverybody knowsU+000DU+000AU+000DU+000AEverybody knows that the boat is leakingU+000DU+000AEverybody knows that the captain liedU+000DU+000AEverybody got this broken feelingU+000DU+000ALike their father or their dog just diedU+000DU+000AU+000DU+000AEverybody talking to their pocketsU+000DU+000AEverybody wants a box of chocolatesU+000DU+000AAnd a long stem roseU+000DU+000AEverybody knowsU+000DU+000AU+000DU+000AEverybody knows that you love me babyU+000DU+000AEverybody knows that you really doU+000DU+000AEverybody knows that you've been faithfulU+000DU+000AAh give or take a night or twoU+000DU+000AEverybody knows you've been discreetU+000DU+000ABut there were so many people you just had to meetU+000DU+000AWithout your clothesU+000DU+000AAnd everybody knowsU+000DU+000AU+000DU+000AEverybody knows, everybody knowsU+000DU+000AThat's how it goesU+000DU+000AEverybody knowsU+000DU+000AU+000DU+000AEverybody knows, everybody knowsU+000DU+000AThat's how it goesU+000DU+000AEverybody knowsU+000DU+000AU+000DU+000AAnd everybody knows that it's now or neverU+000DU+000AEverybody knows that it's me or youU+000DU+000AAnd everybody knows that you live foreverU+000DU+000AAh when you've done a line or twoU+000DU+000AEverybody knows the deal is rottenU+000DU+000AOld Black Joe's still pickin' cottonU+000DU+000AFor your ribbons and bowsU+000DU+000AAnd everybody knowsU+000DU+000AU+000DU+000AAnd everybody knows that the Plague is comingU+000DU+000AEverybody knows that it's moving fastU+000DU+000AEverybody knows that the naked man and womanU+000DU+000AAre just a shining artifact of the pastU+000DU+000AEverybody knows the scene is deadU+000DU+000ABut there's gonna be a meter on your bedU+000DU+000AThat will discloseU+000DU+000AWhat everybody knowsU+000DU+000AU+000DU+000AAnd everybody knows that you're in troubleU+000DU+000AEverybody knows what you've been throughU+000DU+000AFrom the bloody cross on top of CalvaryU+000DU+000ATo the beach of MalibuU+000DU+000AEverybody knows it's coming apartU+000DU+000ATake one last look at this Sacred HeartU+000DU+000ABefore it blowsU+000DU+000AAnd everybody knowsU+000DU+000AU+000DU+000AEverybody knows, everybody knowsU+000DU+000AThat's how it goesU+000DU+000AEverybody knowsU+000DU+000AU+000DU+000AOh everybody knows, everybody knowsU+000DU+000AThat's how it goesU+000DU+000AEverybody knows'U+000D_U+000A$

```

And these were the original lyrics

> [@](#):
>
> **Everybody knows that the dice are loaded  
> Everybody rolls with their fingers crossed  
> Everybody knows that the war is over  
> Everybody knows the good guys lost  
> Everybody knows the fight was fixed  
> The poor stay poor, the rich get rich  
> That's how it goes  
> Everybody knows**

QUESTION:  
how do I fit this detlevcode into the above script to make it work better?

```
... hin ...
$replace(%UNSYNCEDLYRICS%,$char(13)$char(10),'U+000DU+000A')
... und zurück ...
$replace(%UNSYNCEDLYRICS%,'U+000DU+000A',$char(13)$char(10))

... oder so ...
$replace(%UNSYNCEDLYRICS%,$char(13)$char(10),'<r><n>',$char(9),'<t>')
$replace(%UNSYNCEDLYRICS%,'<r><n>',$char(13)$char(10),'<t>',$char(9))

... oder so ...
$replace(%UNSYNCEDLYRICS%,$char(13),' !*+# ',$char(10),' !§$% ',$char(9),' !"§? ')
$replace(%UNSYNCEDLYRICS%,' !*+# ',$char(13),' !§$% ',$char(10),' !"§? ',$char(9))

... oder so ...
$replace(%UNSYNCEDLYRICS%,$char(13),' $char(13) ',$char(10),' $char(10) ',$char(9),' $char(9) ')
$replace(%UNSYNCEDLYRICS%,' $char(13) ',$char(13),' $char(10) ',$char(10),' $char(9) ',$char(9))

```

Tusend takk!

PS  
If anyone could post the original layout/setup of the **csv.mte** I'd be grateful.

_Donkeyshown! 😉_

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [February 22, 2013, 1:21pm UTC](https://community.mp3tag.de/t/exporting-doesnt-work/14469/8 "2013-02-22T13:21:34Z")

</div>

> [@GwenkillRRRRbeee](#):
>
> QUESTION:  
> how do I fit this detlevcode into the above script to make it work better?

If you have a lyrics-field (that actually shows in MP3tag) and you want to have a proper csv-file with just one line for each record then the control characters have to be replaced.

The "hin" in DetlevD's script mean "to" or "into" and the "oder so" mean "or like this".

The $chr(9) is the TAB character which you might know from MS Word that bridgeds the space between two tab stops.

So, depending on the contents of the source field DetlevD's command replaces all invisible control characters with a string that will probably not appear in plain text.  
The result in the end is a very long single line as you have found in the excerpt you posted as

> [@](#):
>
> just not in the way I wanted it to work

But as these strings are usually not part of the lyrics they can be replaced easily with the external text-editor's function to restore the original linebreaks.  
Or even within MP3tag if you apply DetlevD's $replace in an action of the type "Format tag field" for "Unsyncedlyrics" if the pre-processed text is already in such a field.

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:24pm UTC](https://community.mp3tag.de/t/exporting-doesnt-work/14469/9 "2026-02-09T12:24:21Z")

</div>


