# Playlist export: skip intro+outro

**URL:** <https://community.mp3tag.de/t/playlist-export-skip-intro-outro/48733>\
**Category:** Support\
**Created:** [April 25, 2020, 2:55pm UTC](https://community.mp3tag.de/t/playlist-export-skip-intro-outro/48733 "2020-04-25T14:55:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![powerkutte](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/7c8e57/32.png) [@powerkutte](https://community.mp3tag.de/u/powerkutte)\
**Post date:** [April 25, 2020, 2:55pm UTC](https://community.mp3tag.de/t/playlist-export-skip-intro-outro/48733/1 "2020-04-25T14:55:55Z")

</div>

Hi there,

i use the export function to create

- a csv-file for packaging+tagging files via php
- a Tracklist.txt
- an HTML-Player
- an HTML/CSS-Tracklist wich then is rendered as PNG

for some files i want to exclude the intro(track0)+outro(last track).

**can i skip one loop conditionally? e.g. if track=0 or title=Outro**

tracklist code:  
$filename(Trackliste\_shop.txt,utf-8)Inhaltsverzeichnis %album%  
$loop(%track%) | %\_length% | %title%$char(9)  
$loopend()Spieldauer: ca. $div(%\_total\_time\_raw%,60) Minuten

HTML-Code:

> ```
> ...HTML...
> <tr>
> </td>
> <td>
> <img src="../../_Vorlagen/HTML/eule_red_headphones.png" height="150px" >
> </td>
> <td colspan="4" class="gross">
> <center>%album%</center>
> </td>
> 
> </tr>
> $loop(%_filename_ext%)
> <tr class="Track%track% Title-%title%"> <td class="abstand" colspan="3"><hr color="#FFFFFF"/>-</td> </tr>
> <tr class="Track%track% Title-%title%">
> <td class="gradient links weiss gross" >
> $num(%track%,2)		
> <div class="klein weiss">
> <bbr />%_length%</td>
> </div>
> </td>
> <td class="strich" />
> <td class="gradient mitte weiss mittel" >
> %title%
> </td>
> <!--td class="gradient mitte weiss klein" >
> <bbr />%_length%</td>
> </td-->
> <td class="strich" />
> <td class="gradient rechts rot schatten gross " >
> &#9658;
> </td>
> 
> </tr>
> $loopend()
> 
> </table>
> ...HTML...
> 
> ```

---

<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:** [April 25, 2020, 3:21pm UTC](https://community.mp3tag.de/t/playlist-export-skip-intro-outro/48733/2 "2020-04-25T15:21:15Z")

</div>

all the scripting functions, including the boolean ones are available for the export - though the syntax may become a little congested.  
And I am not really sure if the parser likes "End-of-line" characters in the code.  
Wouldn't it be much easier to use a filter first so that the intro and outro tracks are not part of the file list?

---

<div class="post-metadata">

**Author:** ![powerkutte](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/7c8e57/32.png) [@powerkutte](https://community.mp3tag.de/u/powerkutte)\
**Post date:** [April 25, 2020, 3:34pm UTC](https://community.mp3tag.de/t/playlist-export-skip-intro-outro/48733/3 "2020-04-25T15:34:50Z")

</div>

Hi there,  
well i got quite a list of exports so there is a good chance of messing up when selecting the track by hand.  
 ![grafik](https://community.mp3tag.de/uploads/default/original/2X/4/44ee72125d46576651b9a41bddad36192fc09abb.png)

Regarding EOL: luckily there are no problems. Only Characters like []' require attention

---

<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:** [April 25, 2020, 4:07pm UTC](https://community.mp3tag.de/t/playlist-export-skip-intro-outro/48733/4 "2020-04-25T16:07:51Z")

</div>

> [@powerkutte](#):
>
> there is a good chance of messing up when selecting the track by hand

Isn't it much more puzzling that you find that although you selected all files, not all of them appear in the export?  
Also, you would have to edit every export with that condition ...  
To test for the occurrance of a string, use $strstr(), e.g. $strstr(%title%,outro) which is case-sensitive.  
This returns a number so you could use for the condition $(ifgreater($strstr(%title%,outro),0,do this,do the other)

---

<div class="post-metadata">

**Author:** ![powerkutte](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/7c8e57/32.png) [@powerkutte](https://community.mp3tag.de/u/powerkutte)\
**Post date:** [April 25, 2020, 5:20pm UTC](https://community.mp3tag.de/t/playlist-export-skip-intro-outro/48733/5 "2020-04-25T17:20:31Z")

</div>

Got my TXT working - Thx!

```
$filename(Trackliste_shop.txt,utf-8)Inhaltsverzeichnis %album%
$loop(%track%)$ifgreater($strstr(%title%,Ausklang),0,,$ifgreater($strstr(%title%,Einklang),0,, | %_length% | %title%$char(9)
))$loopend()Spieldauer: ca. $div(%_total_time_raw%,60) Minuten

```

so i guess you cannot call loopend() conditionally?

---

<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:** [May 25, 2020, 5:20pm UTC](https://community.mp3tag.de/t/playlist-export-skip-intro-outro/48733/6 "2020-05-25T17:20:34Z")

</div>

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