# Tag based on folder information

**URL:** https://community.mp3tag.de/t/tag-based-on-folder-information/6143
**Category:** Support
**Created:** [January 30, 2008, 2:24am UTC](https://community.mp3tag.de/t/tag-based-on-folder-information/6143 "2008-01-30T02:24:48Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![dave88](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@dave88](https://community.mp3tag.de/u/dave88)
#### Post date: [January 30, 2008, 2:24am UTC](https://community.mp3tag.de/t/tag-based-on-folder-information/6143/1 "2008-01-30T02:24:48Z")

</div>

I've just converted a whole bunch of live music shows to flac from shn. I would like to tag them based on information in the containing folder names.

example folder name: gd77-05-07.sbd.Boston.Garden.flac16

I would like to tag the files with the date and venue extracted from this info, is this possible with mp3tag?

Thanks!

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [January 31, 2008, 6:50pm UTC](https://community.mp3tag.de/t/tag-based-on-folder-information/6143/2 "2008-01-31T18:50:46Z")

</div>

Maybe you can say a little more about the folder names, what parts are consistent or how can venue and date be recognized.

---

<div class="post-metadata">

### Author: ![dave88](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@dave88](https://community.mp3tag.de/u/dave88)
#### Post date: [January 31, 2008, 10:15pm UTC](https://community.mp3tag.de/t/tag-based-on-folder-information/6143/3 "2008-01-31T22:15:52Z")

</div>

Well I've changed the folder names a bit I've removed any "." in venue names so "Boston.Garden" is now "Boston Garden"

Before the first "." is the date "gd77-05-07" (the gd stands for grateful dead) after the first "." is the source "sbd" after the second "." is the venue "Boston Garden"

Here are a few examples

gd71-08-06.aud.Hollywood Palladium.flac16  
gd71-08-21.aud.Mickeys Barn.flac16  
gd74-10-18.sbd.Winterland.flac16  
gd77-05-07.sbd.Boston Garden.flac16  
gd77-10-07.sbd.U of New Mexico.flac16

I have about 250 shows in this format, I have used mp3tag to mass add artist and year tags, but date and venue as album titles looks to be a very tedious cut and paste project.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [February 1, 2008, 10:00am UTC](https://community.mp3tag.de/t/tag-based-on-folder-information/6143/4 "2008-02-01T10:00:09Z")

</div>

If you removed the dots from the venue it is rather simple:

Make a [new action](https://community.mp3tag.de/t/967/1)

_Action type:_ **Guess values**  
_Source format:_ **%\_directory%**  
_Guessing pattern:_ **%date%.%dummy%.%venue%.%dummy%**

Or Convert \> filename - tag  
Format string: %date%.%dummy%.%venue%.%dummy%\%dummy%

---

<div class="post-metadata">

### Author: ![dave88](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@dave88](https://community.mp3tag.de/u/dave88)
#### Post date: [February 2, 2008, 12:27am UTC](https://community.mp3tag.de/t/tag-based-on-folder-information/6143/5 "2008-02-02T00:27:27Z")

</div>

Cool, I'll give it a try.

Thanks!

---

<div class="post-metadata">

### Author: ![dave88](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@dave88](https://community.mp3tag.de/u/dave88)
#### Post date: [February 5, 2008, 8:10am UTC](https://community.mp3tag.de/t/tag-based-on-folder-information/6143/6 "2008-02-05T08:10:46Z")

</div>

With a little experimenting and a couple replace functions I was able to tag them all with date and venue as album title. IE "77-05-07 Boston Garden" Mp3tag is a truly powerful tool.

Thanks again ![:music:](https://community.mp3tag.de/uploads/default/original/1X/2ba05d1ade5eb0d15fc173be6f717dbe63890a70.gif ":music:")

---

<div class="post-metadata">

### Author: ![Bluesrule](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/ed8c4c/32.png) [@Bluesrule](https://community.mp3tag.de/u/Bluesrule)
#### Post date: [September 2, 2021, 12:24am UTC](https://community.mp3tag.de/t/tag-based-on-folder-information/6143/7 "2021-09-02T00:24:07Z")

</div>

Found this by search .

I've folders named XXXX - Album , where XXXX is the year .

Is it possible to extract just the year to go into the tag field ?

---

<div class="post-metadata">

### Author: ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)
#### Post date: [September 2, 2021, 1:44am UTC](https://community.mp3tag.de/t/tag-based-on-folder-information/6143/8 "2021-09-02T01:44:32Z")

</div>

%year% - %dummy% using the guess vales function

---

<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: [September 2, 2021, 4:27am UTC](https://community.mp3tag.de/t/tag-based-on-folder-information/6143/9 "2021-09-02T04:27:09Z")

</div>

If you address the folder, then you would have to expand

> [@MotleyG](#):
>
> %year% - %dummy%

a little to  
`%year% - %dummy%\%dummy%`  
if you use Converter\>Filename-Tag

or in case of

> [@MotleyG](#):
>
> guess val(u)es

action:  
You need %\_directory% as source. Then the format string would be as you said:

> [@MotleyG](#):
>
> %year% - %dummy%

Also, this problem has been handled in the [FAQs](https://community.mp3tag.de/t/converters-to-rename-files-or-to-import-tags/8016/3).

---

<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 13, 2025, 7:13am UTC](https://community.mp3tag.de/t/tag-based-on-folder-information/6143/10 "2025-03-13T07:13:04Z")

</div>

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