# Need help to modify export script

**URL:** <https://community.mp3tag.de/t/need-help-to-modify-export-script/51395>\
**Category:** Support\
**Created:** [December 30, 2020, 6:56am UTC](https://community.mp3tag.de/t/need-help-to-modify-export-script/51395 "2020-12-30T06:56:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fonzie](https://community.mp3tag.de/user_avatar/community.mp3tag.de/fonzie/32/8622_2.png) [@fonzie](https://community.mp3tag.de/u/fonzie)\
**Post date:** [December 30, 2020, 6:56am UTC](https://community.mp3tag.de/t/need-help-to-modify-export-script/51395/1 "2020-12-30T06:56:38Z")

</div>

Hello,  
I use a translator because I don't know English.  
I need your help.  
For the format: mp3 or flac (not MPEG 1 Layer III)  
for titles only one artist

1. (04:51) I Wanna Dance with Somebody (Who Loves Me)  
to become:
2. I Wanna Dance with Somebody (Who Loves Me) (04:51)  
and for multi-artist:
3. (04:51) I Wanna Dance with Somebody (Who Loves Me)
4. (03:48) Take On Me (Remastered)  
to become:
5. Whitney Houston - I Wanna Dance with Somebody (Who Loves Me) (04:51)
6. A-ha - Take On Me (Remastered) (03:48)  
would it be possible to modify this script:

```auto
$loop($num(%track%,4)%_filename_ext%,1)$puts(bit,$if2($neql(%_counter%,4),$put(bit,%_bitrate%)))$loopend()
Album.........: %album%$repeat( ,$sub($get(offDistance),$len(%album%)))
Genre.........: %genre%$repeat( ,$sub($get(offDistance),$len(%genre%)))
Year..........: %year%$repeat( ,$sub($get(offDistance),$len(%year%)))
File Format...: %_codec%$repeat( ,$sub($get(offDistance),$len(%_codec%)))
Tracks........: %_total_files%$repeat( ,$sub($get(offDistance),$len(%_total_files%)))
Palytime........: %_total_time%$repeat( ,$sub($get(offDistance),$len(%_total_time%)))
Quality.......: $loop(%_path%$num(%track%,2),1)$if2($neql(%_counter%,4),$put(bit,%_bitrate%))$loopend() kbps %_vbr%$repeat( ,$sub($get(offDistance),$len($get(bit) kbps %_vbr%)))
Channels......: %_samplerate% khz / %_mode%

$loop(%_folderpath%)
Disc #.........: $replace(%discnumber%,/, of )$repeat( ,$sub($sub(74,34),$len($replace(%discnumber%,/, of ))))
$loop(%_path%$num(%track%,2))$repeat( ,7)$num(%track%,2).($replace(%_length%,_,:)) %title%$repeat( ,$sub($sub(74,7),$len($num(%track%,2). ($replace(%_length%,_,:)) %title%)))
$loopend()$repeat( ,5)$repeat(_,40)$repeat( ,$sub(74,45))
Playtime.......: %_total_time%$repeat( ,$sub($sub(74,34),$len(%_total_time%)))
Total Size.....: %_total_size%$repeat( ,$sub($sub(74,34),$len(%_total_size%)))
$repeat( ,15)$repeat(¯,30)$repeat( ,$sub(74,45))
$loopend()$repeat( ,$get(inBorder))

```

I don't know anything about encoding.  
I took several scripts from the forum and did this as I knew how.  
Thank you for your help.  
Laurent

---

<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:** [December 30, 2020, 1:13pm UTC](https://community.mp3tag.de/t/need-help-to-modify-export-script/51395/2 "2020-12-30T13:13:14Z")

</div>

How do you know that someone is a single artist or a multi-artist?  
(please check the code example again: I think some parts of the code have been interpreted by the forum formatter and become text in italics - this probably should not happen. Use the grave accent to enclose these texts)

---

<div class="post-metadata">

**Author:** ![fonzie](https://community.mp3tag.de/user_avatar/community.mp3tag.de/fonzie/32/8622_2.png) [@fonzie](https://community.mp3tag.de/u/fonzie)\
**Post date:** [December 30, 2020, 6:58pm UTC](https://community.mp3tag.de/t/need-help-to-modify-export-script/51395/3 "2020-12-30T18:58:49Z")

</div>

Thank you for answering.  
indeed, I looked at several scripts, I modified a script as I knew, I do not know myself at all in encoding.  
I expressed myself poorly, I meant an album with a single artist and an album with various artists (VA)  
Ex:  
a single artist  
Artist: Annie Lennox  
multi artist (compil's:)  
Artist: VA

or if you want to start from the beginning?  
I will be very grateful to you.

---

<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:** [December 30, 2020, 7:16pm UTC](https://community.mp3tag.de/t/need-help-to-modify-export-script/51395/4 "2020-12-30T19:16:40Z")

</div>

You could replace the instruction where you output the information of artist, title and length with  
`$if($eql(%artist%,VA),"%title% (%_length%)","%artist% - %title% (%_length%)")`

---

<div class="post-metadata">

**Author:** ![fonzie](https://community.mp3tag.de/user_avatar/community.mp3tag.de/fonzie/32/8622_2.png) [@fonzie](https://community.mp3tag.de/u/fonzie)\
**Post date:** [December 30, 2020, 7:30pm UTC](https://community.mp3tag.de/t/need-help-to-modify-export-script/51395/5 "2020-12-30T19:30:47Z")

</div>

Thank you. I will get back to you if I have another problem

---

<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:** [March 23, 2024, 4:42pm UTC](https://community.mp3tag.de/t/need-help-to-modify-export-script/51395/6 "2024-03-23T16:42:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
