# Rewriting stripped tag info from filename & location

**URL:** <https://community.mp3tag.de/t/rewriting-stripped-tag-info-from-filename-location/52855>\
**Category:** Support\
**Created:** [April 16, 2021, 10:53pm UTC](https://community.mp3tag.de/t/rewriting-stripped-tag-info-from-filename-location/52855 "2021-04-16T22:53:19Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaveSumm](https://community.mp3tag.de/user_avatar/community.mp3tag.de/davesumm/32/7819_2.png) [@DaveSumm](https://community.mp3tag.de/u/DaveSumm)\
**Post date:** [April 16, 2021, 10:53pm UTC](https://community.mp3tag.de/t/rewriting-stripped-tag-info-from-filename-location/52855/1 "2021-04-16T22:53:19Z")

</div>

Hi, all  
a shitty 3rd party software I cannot avoid using is stripping the metadata from a lot (but not all) of my files and I want to know if it's possible to re-write the stripped fields based on where they are located and their file name  
Example  
E:\Labels\Rekids\2021-01-29 - Immortal Daydream\04. Alan Fitzpatrick - The Underdog.aiff  
from the above, I can gather the following  
Label (Rekids)  
Year (2021-01-29)  
Album (Immortal Daydream)  
Number (04)  
Artist (Alan Fitzpatrick)  
Title (The Underdog)

Is there a way of doing this?

Thanks in advance  
Summy

---

<div class="post-metadata">

**Author:** ![jewahe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jewahe](https://community.mp3tag.de/u/jewahe)\
**Post date:** [April 16, 2021, 11:07pm UTC](https://community.mp3tag.de/t/rewriting-stripped-tag-info-from-filename-location/52855/2 "2021-04-16T23:07:06Z")

</div>

Create an action using GUESS VALUE. The source should be PATH and the guessing pattern is

> E:\Labels`\`%publisher%`\`%YEAR% - %album%`\`%track%. %artist% - %title%.mp3

There is no field for label, so I suggest publisher, but you can also use the comment or grouping field.

If the _E:\Labels_ part of the path isn't static, you can use something like

> %dummy1%`\`%dummy2%`\`%publisher%`\`%YEAR% - %album%`\`%track%. %artist% - %title%.mp3

---

<div class="post-metadata">

**Author:** ![DaveSumm](https://community.mp3tag.de/user_avatar/community.mp3tag.de/davesumm/32/7819_2.png) [@DaveSumm](https://community.mp3tag.de/u/DaveSumm)\
**Post date:** [April 16, 2021, 11:12pm UTC](https://community.mp3tag.de/t/rewriting-stripped-tag-info-from-filename-location/52855/3 "2021-04-16T23:12:28Z")

</div>

Fantastic! Thanks, I'll give it a crack

---

<div class="post-metadata">

**Author:** ![jewahe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jewahe](https://community.mp3tag.de/u/jewahe)\
**Post date:** [April 16, 2021, 11:18pm UTC](https://community.mp3tag.de/t/rewriting-stripped-tag-info-from-filename-location/52855/4 "2021-04-16T23:18:25Z")

</div>

There should be a slash between %publisher% and %year%.

---

<div class="post-metadata">

**Author:** ![DaveSumm](https://community.mp3tag.de/user_avatar/community.mp3tag.de/davesumm/32/7819_2.png) [@DaveSumm](https://community.mp3tag.de/u/DaveSumm)\
**Post date:** [April 17, 2021, 12:53am UTC](https://community.mp3tag.de/t/rewriting-stripped-tag-info-from-filename-location/52855/5 "2021-04-17T00:53:39Z")

</div>

Is there a similar way I can introduce a file's catalogue number from its path?  
Path example  
\*\ANJ022R Super8 - Alba (Maor Levi Remix)\file  
Catalogue field  
ANJ022R

---

<div class="post-metadata">

**Author:** ![jewahe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jewahe](https://community.mp3tag.de/u/jewahe)\
**Post date:** [April 17, 2021, 1:07pm UTC](https://community.mp3tag.de/t/rewriting-stripped-tag-info-from-filename-location/52855/6 "2021-04-17T13:07:26Z")

</div>

There is not a %catalogue% field, but you could use a guessing pattern to pick it up and put it into whatever field you want.

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [April 17, 2021, 1:22pm UTC](https://community.mp3tag.de/t/rewriting-stripped-tag-info-from-filename-location/52855/7 "2021-04-17T13:22:02Z")

</div>

According to  
[https://wiki.hydrogenaud.io/index.php?title=Tag\_Mapping#Identifiers](https://wiki.hydrogenaud.io/index.php?title=Tag_Mapping#Identifiers)  
you could use CATALOGNUMBER  
or you follow this

> [@Help me map Vorbis to ID3v2](https://community.mp3tag.de/t/help-me-map-vorbis-to-id3v2/13664/5):
>
> ID3v2 has special [TXXX](http://www.id3.org/id3v2.3.0#head-29e37534e169ad913deb6a4fee345028f3db7c3f) (user defined) fields, which allow you to have fields of any name. In Mp3tag, if a name doesn't map to one of its recognized four-letter frame names, then Mp3tag will create a TXXX frame with that description. So you can write things like 'Catalog #' or "Catalog Number'. This is commonly how ReplayGain fields are written to ID3v2 tags - TXXX frames with descriptions of REPLAYGAIN\_TRACK\_GAIN, REPLAYGAIN\_ALBUM\_GAIN, etc.. You can read the ID3v2.3 and 2.4 specs [here](http://www.id3.org/Developer_Information), but th…

As @jewahe already told you, there is no standard field for CATALOG in ID3v2.3 or v2.4  
It depends on your playing software, if it reads your choosen tag for the catalog content.

---

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [April 17, 2021, 1:39pm UTC](https://community.mp3tag.de/t/rewriting-stripped-tag-info-from-filename-location/52855/8 "2021-04-17T13:39:35Z")

</div>

The Discogs Tag Source uses `CATALOGID` if you're already using that. To actually do that from the example, you'd the converter "Filename - Tag" with a formatstring like

`%CATALOGID% %DUMMY%\%DUMMY%`

Please note (also @jewahe), that there is no %dummy1% or %dummy2% field. You can reuse the %dummy% field for every part you want to ignore during import.

---

<div class="post-metadata">

**Author:** ![DaveSumm](https://community.mp3tag.de/user_avatar/community.mp3tag.de/davesumm/32/7819_2.png) [@DaveSumm](https://community.mp3tag.de/u/DaveSumm)\
**Post date:** [April 18, 2021, 1:25am UTC](https://community.mp3tag.de/t/rewriting-stripped-tag-info-from-filename-location/52855/9 "2021-04-18T01:25:29Z")

</div>

Many thanks to all that have helped

---

<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:29pm UTC](https://community.mp3tag.de/t/rewriting-stripped-tag-info-from-filename-location/52855/10 "2026-02-09T12:29:11Z")

</div>


