# Action to set TV Episode funny behavior

**URL:** https://community.mp3tag.de/t/action-to-set-tv-episode-funny-behavior/68291
**Category:** Support
**Created:** [April 23, 2025, 1:16am UTC](https://community.mp3tag.de/t/action-to-set-tv-episode-funny-behavior/68291 "2025-04-23T01:16:22Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![phossler](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/278dde/32.png) [@phossler](https://community.mp3tag.de/u/phossler)
#### Post date: [April 23, 2025, 1:16am UTC](https://community.mp3tag.de/t/action-to-set-tv-episode-funny-behavior/68291/1 "2025-04-23T01:16:22Z")

</div>

IMy convention is to name TV files like s01e03 - Title and I have an action to parse data into the fields

 ![image](https://community.mp3tag.de/uploads/default/original/3X/6/f/6fa6b187f74b7036aafd7603e9b569906614dbee.png)

For some reason, the TV Episode is always getting set to **1\06** where 1 is the season and 06 is the episode, although the TV Episode column only shows a 1 (the season) but the left side shows the 1\06

 ![image](https://community.mp3tag.de/uploads/default/original/3X/0/9/09e7f137dbe109cfdf1677ec36555d11e8fb8c31.png)

 ![image](https://community.mp3tag.de/uploads/default/original/3X/2/6/2627783ba439fad9f83f24d28d65dceb79d165c5.png)

I'm very confused since I'm kindof positive it used to work like I wanted and only put the episode number in

Has there been a change or what should I change?

Thanks

---

<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: [April 23, 2025, 1:25am UTC](https://community.mp3tag.de/t/action-to-set-tv-episode-funny-behavior/68291/2 "2025-04-23T01:25:06Z")

</div>

The double backslash `\\` is a placeholder character showing that you have two fields named episode. Something in your actions is writing a second field.

---

<div class="post-metadata">

### Author: ![phossler](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/278dde/32.png) [@phossler](https://community.mp3tag.de/u/phossler)
#### Post date: [April 23, 2025, 1:46am UTC](https://community.mp3tag.de/t/action-to-set-tv-episode-funny-behavior/68291/3 "2025-04-23T01:46:26Z")

</div>

That was interesting. I went into Extended tags and there were 2 TVEPISODE enteries

 ![image](https://community.mp3tag.de/uploads/default/original/3X/c/6/c6eb6426554a628b4c14ba09c27efb00022ad4ec.png)

Delete the TVEPISODE = 1 and the correct one now shows

BUT clearing them all and rerunning my action puts the 2 TVEPISODEs back in Extended Tags

I don't see any of the actions that would do that

Further ideas?

---

<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: [April 23, 2025, 2:14am UTC](https://community.mp3tag.de/t/action-to-set-tv-episode-funny-behavior/68291/4 "2025-04-23T02:14:59Z")

</div>

> [@phossler](#):
>
> Further ideas?

Knowing it is somewhere in the action now, I would try to simplify things. Create a new action and add one line at a time and run it. When the unexpected results happen it will be from the last line added.

---

<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: [April 23, 2025, 5:05am UTC](https://community.mp3tag.de/t/action-to-set-tv-episode-funny-behavior/68291/5 "2025-04-23T05:05:55Z")

</div>

In your screenshot I see an empty line between TVEPISODE and TVSEASON - what could that be?  
Also, I see no field TRACK although you set it with an action - could it be that the TVEPISODE is mapped to TRACK (or vice versa)?

---

<div class="post-metadata">

### Author: ![phossler](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/278dde/32.png) [@phossler](https://community.mp3tag.de/u/phossler)
#### Post date: [April 23, 2025, 12:52pm UTC](https://community.mp3tag.de/t/action-to-set-tv-episode-funny-behavior/68291/6 "2025-04-23T12:52:15Z")

</div>

Don't know why there was a blank line in the image, there wasn't on in the action  
TRACK is set in the action = TVEPISODE and it is correct

 ![image](https://community.mp3tag.de/uploads/default/original/3X/9/f/9f9b4389ac78c1097f51fb5f668f28401531377b.png)

Blanking TRACK and TVEPISODE and then running my action

 ![image](https://community.mp3tag.de/uploads/default/original/3X/3/5/35c16f9c125c77463fb90d4b24394248c14b86b0.png)

doubles the TVEPISODE tags

 ![image](https://community.mp3tag.de/uploads/default/original/3X/f/f/ffee39735ca52a4c512ac13d51ce18ea0daf8bc9.png)

Deleting the =1 line fixes it

With just the one line it works

 ![image](https://community.mp3tag.de/uploads/default/original/3X/e/d/ed72b94c2cfbb63ad194b3fa4339176f01c1c749.png)

Not setting DISCNUMBER then it works

Is there a setting or tag mapping that I'm not understanding?

Thanks for the pointers and tips

 ![image](https://community.mp3tag.de/uploads/default/original/3X/e/c/ec4aa501038ba8fd14b783757ea17ee3a8d9171c.png)

---

<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 23, 2025, 1:34pm UTC](https://community.mp3tag.de/t/action-to-set-tv-episode-funny-behavior/68291/7 "2025-04-23T13:34:08Z")

</div>

> [@phossler](#):
>
> Not setting DISCNUMBER then it works
> 
> Is there a setting or tag mapping that I'm not understanding?

Yes, Matroska video MKV has a mapping from `TVEPISODE` to Matroska's `PART_NUMBER` on the T=50 target type (used for episodes for TV series as outlined in the [Matroska Tags technical documentation](https://www.matroska.org/technical/tagging.html)).

This mapping is also used when writing `DISCNUMBER`, which results in duplicate `TVEPISODE` values for MKV files.

See also [Tag Field Mappings → DISCNUMBER](https://docs.mp3tag.de/mapping/#discnumber) in Mp3tag's Documentation.

---

<div class="post-metadata">

### Author: ![phossler](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/278dde/32.png) [@phossler](https://community.mp3tag.de/u/phossler)
#### Post date: [April 23, 2025, 2:38pm UTC](https://community.mp3tag.de/t/action-to-set-tv-episode-funny-behavior/68291/8 "2025-04-23T14:38:59Z")

</div>

OK, I can work with that now that I know what's going on

My much older TV collections were set correctly but they were MP4s. It's only been recent that MKVs were added

Thanks again

---

<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: [April 23, 2025, 3:47pm UTC](https://community.mp3tag.de/t/action-to-set-tv-episode-funny-behavior/68291/9 "2025-04-23T15:47:14Z")

</div>

> [@phossler](#):
>
> ![image](https://community.mp3tag.de/uploads/default/original/3X/3/5/35c16f9c125c77463fb90d4b24394248c14b86b0.png)

Seeing this now makes more sense, given the recent changes in mp3tag for handling mkv files. There was no mmention of this earlier and I didn't think to ask. Glad this was worked out.

---

<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: [May 7, 2025, 2:09am UTC](https://community.mp3tag.de/t/action-to-set-tv-episode-funny-behavior/68291/10 "2025-05-07T02:09:11Z")

</div>

> [@Florian](#):
>
> This mapping is also used when writing `DISCNUMBER`, which results in duplicate `TVEPISODE` values for MKV files.

With the new mkv mappings, does this mean there is now no way to indicate disc numbers for multi-disc packages? TV show collections often have many seasons and often each season needs several discs.

I suppose this isn't so important in the grand scheme of things, as long as the season and episode numbers work to keep things in order. It just drops the original disc information.

---

<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: [May 7, 2025, 7:38am UTC](https://community.mp3tag.de/t/action-to-set-tv-episode-funny-behavior/68291/11 "2025-05-07T07:38:15Z")

</div>

> [@MotleyG](#):
>
> With the new mkv mappings, does this mean there is now no way to indicate disc numbers for multi-disc packages?

Yes. If I'd remove the mapping of `DISCNUMBER` to Matroska's `PART_NUMBER` on the T=50 target type for MKV files, everything that now reads from and writes to `DISCNUMBER` would use a user-defined field.

---

<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: [June 6, 2025, 7:38am UTC](https://community.mp3tag.de/t/action-to-set-tv-episode-funny-behavior/68291/12 "2025-06-06T07:38:21Z")

</div>

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