# Delete/re-create .sfv .m3u, tag and move compilation.

**URL:** https://community.mp3tag.de/t/delete-re-create-sfv-m3u-tag-and-move-compilation/11453
**Category:** General Discussion
**Created:** [January 16, 2011, 10:11am UTC](https://community.mp3tag.de/t/delete-re-create-sfv-m3u-tag-and-move-compilation/11453 "2011-01-16T10:11:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sept2010](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/edb3f5/32.png) [@sept2010](https://community.mp3tag.de/u/sept2010)
#### Post date: [January 16, 2011, 10:11am UTC](https://community.mp3tag.de/t/delete-re-create-sfv-m3u-tag-and-move-compilation/11453/1 "2011-01-16T10:11:21Z")

</div>

Hi,

After tagging my album against discogs wish works very well 🙂 I´m getting stuck with a lot of manual modification of the album structure.

I guess halv my collection has missing or incorrect .m3u, .sfv or .jpg. When my tagging is done my folder looks very messy. Some contain .CUE and some are not.

First I usally split the .CUE files in the album with foobar getting two new subfolders CD1 and CD2 wich works great.

When my tagging is done my folder structure looks like this.

va-sometihing.nfo  
va-something.sfv  
va-something.m3u  
somejpg1.jpg  
somejpg2.jpg  
somejpg3.jpg  
101-va-cd1.m3u  
201-va-cd2.m3u  
101.va-cd1.mp3  
101.va-cd1.cue  
201.va-cd1.mp3  
201.va-cd1.cue  
CD1 **(folder.jpg)**  
CD2

I want to move the new tagged files in CD1 / CD2 with folder.jpg to a new folder with some modification of the actions group I´ve written below. At the same re-create **.m3u** and **.sfv** to the new folder based on my new tag from discogs. When this is done I can easily delete the old folder manually

Result exampel in new folder  
newsfv.sfv  
newAllm3u.m3u // All tracks in folder  
newCD1m3u. // CD1  
newCD2m3u. // CD2  
folder.jpg  
101-artist-track.mp3  
...  
201-artist-track.mp3  
..  
and so on

For now I´m using this action group ´s. This isn´t optimal either beacuse I want to rename the folder based on how many CD it contain´s. For now I marking the albums containing 2CD and run the command for the 2CD and vice versa for 1CD or 3 CD.

Single CD  
**$validate($replace(VA\_-_%album%CD$num(%year%,4), ,_),\_)**

Dubbel CD  
**$validate($replace(VA\_-_%album%2CD$num(%year%,4), ,_),\_)**

Tripple CD  
**$validate($replace(VA\_-_%album%3CD$num(%year%,4), ,_),\_)**

//

Regards

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [January 16, 2011, 12:37pm UTC](https://community.mp3tag.de/t/delete-re-create-sfv-m3u-tag-and-move-compilation/11453/2 "2011-01-16T12:37:58Z")

</div>

> [@sept2010](#):
>
> Single CD  
> **$validate($replace(VA\_-_%album%CD$num(%year%,4), ,_),\_)**
> 
> Dubbel CD  
> **$validate($replace(VA\_-_%album%2CD$num(%year%,4), ,_),\_)**
> 
> Tripple CD  
> **$validate($replace(VA\_-_%album%3CD$num(%year%,4), ,_),\_)**

If you use the field DISCNUMBER and have all files in one folder, sort your files in a way that the higher discnumber stands on top. If you format _DIRECTORY the field values of the first files are taken. So you can format with:  
 **$validate($replace(VA**_**-_%album%_%discnumber%CD\_$num(%year%,4), ,_),_)**

EDIT:  
if you don't have %discnumber% but all your files are named as shown avove, you can still take $left(%\_filename%,1) instead.

---

<div class="post-metadata">

### Author: ![sept2010](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/edb3f5/32.png) [@sept2010](https://community.mp3tag.de/u/sept2010)
#### Post date: [January 16, 2011, 9:43pm UTC](https://community.mp3tag.de/t/delete-re-create-sfv-m3u-tag-and-move-compilation/11453/3 "2011-01-16T21:43:51Z")

</div>

Thanks pone, I´ll give it a try tomorrow 🙂

> [@pone](#):
>
> If you use the field DISCNUMBER and have all files in one folder, sort your files in a way that the higher discnumber stands on top. If you format _DIRECTORY the field values of the first files are taken. So you can format with:  
> **$validate($replace(VA**_**-_%album%_%discnumber%CD\_$num(%year%,4), ,_),_)**
> 
> EDIT:  
> if you don't have %discnumber% but all your files are named as shown avove, you can still take $left(%\_filename%,1) instead.
