# Playlists for artists

**URL:** https://community.mp3tag.de/t/playlists-for-artists/7267
**Category:** Support
**Created:** [October 1, 2008, 6:05pm UTC](https://community.mp3tag.de/t/playlists-for-artists/7267 "2008-10-01T18:05:49Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![HankScorpio](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/ba9def/32.png) [@HankScorpio](https://community.mp3tag.de/u/HankScorpio)
#### Post date: [October 1, 2008, 6:05pm UTC](https://community.mp3tag.de/t/playlists-for-artists/7267/1 "2008-10-01T18:05:49Z")

</div>

Hey guys,

I know there are a lot of playlist questions asked but I've spent an hour searching and can't figure out this one...

Tree is:  
\Genre\Artist\Album

I've done the magic playlist per album:  
\Genre\Artist\Album\playlist\_with\_albumtracks.m3u

but I'd like to have a playlist per artist in the root of the artist directory:  
\Genre\Artist\playlist\_with\_all\_artist\_tracks.m3u

and possibly playlist per genre:  
\Genre\playlist\_with\_all\_genre\_tracks.m3u

Any clues...?

---

<div class="post-metadata">

### Author: ![Stevest](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/a698b9/32.png) [@Stevest](https://community.mp3tag.de/u/Stevest)
#### Post date: [October 2, 2008, 9:15am UTC](https://community.mp3tag.de/t/playlists-for-artists/7267/2 "2008-10-02T09:15:21Z")

</div>

Create export files.

Export button on the toolbar - New button on the appearing window - Give a name (e.g. Album Playlist, Artist Playlist, etc.) - Edit the export file

What to write in the export file?

1. If you want to create an album playlist 'playalbum.m3u' (a playlist containing all the tracks of the album):

- replace the text of the export file with this:

- Save the file.

- Run the script with these checkbox state:  
[] Append data  
[x] One file per directory

1. If you want to create an artist playlist 'playartist.m3u' (a playlist containing all the tracks of the artist)

- replace the text of the export file with this:

- Save the file.

- Run the script with these checkbox state:  
[x] Append data  
[x] One file per directory

1. If you want to create a genre playlist 'playgenre.m3u' (a playlist containing all the tracks of the same genre)

- replace the text of the export file with this:

- Save the file.

- Run the script with these checkbox state:  
[x] Append data  
[x] One file per directory

* * *

However, if you run the export script twice (for example you find a mispell in your fields, and you fix it), unfortunately the second run append the track information to the end of the previous version of m3us. So before re-run the script, you should delete all the previously created m3u files.  
The best solution for this problem would be the support for multi-file creation (more filename declarations allowed) in export scripts (unother sugesstion for Florian... 😃 ). If this thing implemented, you shouldn't care of checkboxes anymore... ![:rolleyes:](https://community.mp3tag.de/uploads/default/original/1X/3a79e8b0b7d169b30216785521d7c6f4f895c421.gif ":rolleyes:")

---

<div class="post-metadata">

### Author: ![HankScorpio](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/ba9def/32.png) [@HankScorpio](https://community.mp3tag.de/u/HankScorpio)
#### Post date: [October 2, 2008, 3:10pm UTC](https://community.mp3tag.de/t/playlists-for-artists/7267/3 "2008-10-02T15:10:50Z")

</div>

Thanks for the pointers!

Your artist export was almost what I wanted, I had to add a %\_directory% to the path so it could find the files but easy to do once I understood what your scripts were doing.

Thanks for the help 🙂

---

<div class="post-metadata">

### Author: ![Stevest](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/a698b9/32.png) [@Stevest](https://community.mp3tag.de/u/Stevest)
#### Post date: [October 2, 2008, 6:45pm UTC](https://community.mp3tag.de/t/playlists-for-artists/7267/4 "2008-10-02T18:45:21Z")

</div>

> [@HankScorpio](#):
>
> Your artist export was almost what I wanted, I had to add a %\_directory% to the path so it could find the files but easy to do once I understood what your scripts were doing.

Oops, you're right. I just copy-and-past the first version, and forgot to change the path info. But now it's fixed.

---

<div class="post-metadata">

### Author: ![leadfoot](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c4cdca/32.png) [@leadfoot](https://community.mp3tag.de/u/leadfoot)
#### Post date: [April 27, 2009, 6:33pm UTC](https://community.mp3tag.de/t/playlists-for-artists/7267/5 "2009-04-27T18:33:05Z")

</div>

> [@HankScorpio](#):
>
> but I'd like to have a playlist per artist in the root of the artist directory:  
> \Genre\Artist\playlist\_with\_all\_artist\_tracks.m3u

This is really close to what I want: A playlist by Artist with all playlists in the C:\Music\Playlists directory. I've tried modifying the code, but I get the wrong path info in the playlist.

Any suggestions?

---

<div class="post-metadata">

### Author: ![leadfoot](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c4cdca/32.png) [@leadfoot](https://community.mp3tag.de/u/leadfoot)
#### Post date: [April 28, 2009, 2:10pm UTC](https://community.mp3tag.de/t/playlists-for-artists/7267/6 "2009-04-28T14:10:40Z")

</div>

Not as bad as I thought:

```
$filename(C:\Music\Playlists\\%artist%.m3u)#EXTM3U
$loop(%artist%,1)$loop(%_path%)#EXTINF:%_length_seconds%,
$if(%artist%,$if(%title%,%artist% - %title%,%_filename%),%_filename%)
%_path%
$loopend()$loopend()

```

I just had to redirect the $filename to the appropriate directory, and put the full path in the playlist, and have the artist name as the playlist name. Easy! 🕶

---

<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:21pm UTC](https://community.mp3tag.de/t/playlists-for-artists/7267/7 "2026-02-09T12:21:07Z")

</div>


