# 2 CD Text Track Listing

**URL:** https://community.mp3tag.de/t/2-cd-text-track-listing/6135
**Category:** Export
**Created:** [January 26, 2008, 9:54pm UTC](https://community.mp3tag.de/t/2-cd-text-track-listing/6135 "2008-01-26T21:54:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nohart](https://community.mp3tag.de/user_avatar/community.mp3tag.de/nohart/32/98_2.png) [@nohart](https://community.mp3tag.de/u/nohart)
#### Post date: [January 26, 2008, 9:54pm UTC](https://community.mp3tag.de/t/2-cd-text-track-listing/6135/1 "2008-01-26T21:54:21Z")

</div>

I can figure out how to create a Track listing. But I cant figure out how to sort it when an Album has 2CD's. I am using 2 Pac - All Eyez On Me Book 1 & 2 in my example...

Here is what I have:

$filename(txt)$loop(%album%) %track%. %title%  
$loopend()

It produces:

1. Ambitionz Az A Ridah
2. All Bout U
3. Skandalouz
4. Got My Mind Made Up
5. How Do U Want It
6. 2 Of Amerikaz Most Wanted
7. No More Pain
8. Heartz Of Men
9. Life Goes On
10. Only God Can Judge Me
11. Tradin War Stories
12. California Love (Remix)
13. I Ain't Mad At Cha
14. What'z Ya Phone #
15. Can't C Me
16. Shorty Wanna Be A Thug
17. Holla At Me
18. Wonda Why They Call U Bytch
19. When We Ride
20. Thug Passion
21. Picture Me Rollin'
22. Check Out Time
23. Ratha Be Ya Nigga
24. All Eyez On Me
25. Run Tha Streetz
26. Ain't Hard 2 Find
27. Heaven Ain't Hard 2 Find

I would like it to produce: (using the Album Name, a space, then the track list) (All the files are in one folder.)

All Eyez On Me Book 1

1. Ambitionz Az A Ridah
2. All Bout U
3. Skandalouz
4. Got My Mind Made Up
5. How Do U Want It
6. 2 Of Amerikaz Most Wanted
7. No More Pain
8. Heartz Of Men
9. Life Goes On
10. Only God Can Judge Me
11. Tradin War Stories
12. California Love (Remix)
13. I Ain't Mad At Cha
14. What'z Ya Phone #

All Eyez On Me Book 2

1. Can't C Me
2. Shorty Wanna Be A Thug
3. Holla At Me
4. Wonda Why They Call U Bytch
5. When We Ride
6. Thug Passion
7. Picture Me Rollin'
8. Check Out Time
9. Ratha Be Ya Nigga
10. All Eyez On Me
11. Run Tha Streetz
12. Ain't Hard 2 Find
13. Heaven Ain't Hard 2 Find

Thanks in advance 🙂

---

<div class="post-metadata">

### Author: ![nohart](https://community.mp3tag.de/user_avatar/community.mp3tag.de/nohart/32/98_2.png) [@nohart](https://community.mp3tag.de/u/nohart)
#### Post date: [January 27, 2008, 6:41pm UTC](https://community.mp3tag.de/t/2-cd-text-track-listing/6135/2 "2008-01-27T18:41:04Z")

</div>

Ok here is what I did:

$filename(txt)$loop(%album%,1)$puts(album,$add($get(album),1))$loopend()$ifgreater($get(album),1,$loop(%album%,1)%album%  
$loop(%track%) %track%. %title%  
$loopend()  
$loopend(),$loop(%album%,1)%album%$loopend())

It only works with a 2 disc cd that have all the files in one directory. What I did was actually cheat. I went into the great export that Milka created here: [Milka's Export](https://community.mp3tag.de/uploads/default/original/2X/2/2400a66f5fed6085962a9d3d2d4204d09817a93b.zip) (2.92 KB) and stripped out the html script. After about an hour n a half of trial n error I got it in the shape above.

It can be found in this thread:  
[html\_milka\_simple\_album\_overview](http://forums.mp3tag.de/index.php?act=ST&f=25&t=4722&st=0#entry28613)

I am not sure if it is technically correct. But it works. If I try it on just a single cd listing it only produces the Album Title without the track listings. But with a folder that has 2 disc cd in it, it works as per above post.

For a single cd I use this one:

$filename(txt)$loop(%album%,1)$puts(album,$add($get(album),1))$loopend()$ifgreater($get(album),1,$loop(%album%,1)%album%|$loopend(),$loop(%album%,1)%album%$loopend())  
$loop(%track%) %track%. %title%  
$loopend()

If someone knows the script better than I do, feel free to point out any errors or post a better one 🙂
