# Appending to existing genres

**URL:** <https://community.mp3tag.de/t/appending-to-existing-genres/57894>\
**Category:** Mac\
**Created:** [July 14, 2022, 6:45am UTC](https://community.mp3tag.de/t/appending-to-existing-genres/57894 "2022-07-14T06:45:33Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![b1zguy](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/839c29/32.png) [@b1zguy](https://community.mp3tag.de/u/b1zguy)\
**Post date:** [July 18, 2022, 9:15am UTC](https://community.mp3tag.de/t/appending-to-existing-genres/57894/21 "2022-07-18T09:15:18Z")

</div>

Solution for anyone reading this thread in the future:

- Tags were converted to semicolons upon recommendation. Used "Replace" from Quick Actions, however this later (not first time) had issues for me because I drag and drop tracks from Music/iTunes  
-- I think [this thread](https://community.mp3tag.de/t/cant-access-file-via-secure-bookmark/54000/15) helped but will see if issue persists in the ftuture.
- De-deduplicating genres seemes to leave the last one. I used the .mta from the thread linked above, modified for semicolons
- "NOT genre HAS "Rock" filter was used as template to keep file browser clean as I manually edited tracks.  
-- Confirmed they can't be saved, as of now
- Adding/appending tags to semicoloned list was done by creating an Action  
-- Select 'Format Tag Field', choose Genre, add genre of choice. I simply highlighted and selected desired tracks then applied action to add genre.

Thanks to ohrenkino, MotleyG and  
Florian who promptly enlightened me!

P.S My only final issue is not undoing deleting track (from browser view) when finger becomes trigger happy?  
EDIT: Unsure how to split posts/threads so [made](https://community.mp3tag.de/t/undoing-delete-remove-from-browser-file-view/57940) a new one!

---

<div class="post-metadata">

**Author:** ![b1zguy](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/839c29/32.png) [@b1zguy](https://community.mp3tag.de/u/b1zguy)\
**Post date:** [July 22, 2022, 12:25pm UTC](https://community.mp3tag.de/t/appending-to-existing-genres/57894/22 "2022-07-22T12:25:43Z")

</div>

Another update for anyone else who's stuck with the regex for deduplication:

Use this expression:  
`(?:(?<=,)|(?<=\A)) ?([^,]*),(?=.*?(?<=,) ?\1(?=,|\z))`

- By creating a new Replace With Regular Expression action.
- Set Field to GENRE and leave Replace blank

This is the semicolon version that I'm using:  
`(?:(?<=;)|(?<=\A)) ?([^;]*);(?=.*?(?<=;) ?\1(?=;|\z))`  
I just manually replaced commas with semicolons!

.mta didn't work this time for some reason (recently reinstalled computer).

---

<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:** [August 21, 2022, 12:26pm UTC](https://community.mp3tag.de/t/appending-to-existing-genres/57894/23 "2022-08-21T12:26:44Z")

</div>

Closed on August 21, 2022, 12:26pm UTC

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

[Previous page](https://community.mp3tag.de/t/appending-to-existing-genres/57894.md?page=1)
