# File renaming doesn't always work properly

**URL:** https://discussion.mcebuddy2x.com/t/file-renaming-doesnt-always-work-properly/2450
**Category:** Metadata and Renaming
**Created:** [December 18, 2018, 1:03pm UTC](https://discussion.mcebuddy2x.com/t/file-renaming-doesnt-always-work-properly/2450 "2018-12-18T13:03:27Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![rnaimon](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/r/838e76/32.png) [@rnaimon](https://discussion.mcebuddy2x.com/u/rnaimon)
#### Post date: [December 18, 2018, 1:03pm UTC](https://discussion.mcebuddy2x.com/t/file-renaming-doesnt-always-work-properly/2450/1 "2018-12-18T13:03:28Z")

</div>

I’m using this to rename my destination files.

`%ismovie%<Movies\%showname% (%airyear%),TV Shows\%showname% (%premiereyear%)\Season %season%\%showname% (%premiereyear%) - s%season%##e%episode%## %episodename%>`

I’ve not had a chance to try this on a movie yet, but I would expect my TV Shows structure to look like this.

TV Shows\Showname (YEAR)\Season #\Showname (YEAR) - s##e## Episode name

On a lot of my shows this works as I expect it. However, on others I get this:

TV Shows\Showname - s##e##\Season\Showname - s##e## - se00

For example, my Game of Thrones comes in like this.

TV Shows\Game Of Thrones - s07e06 ()\Season\Game Of Thrones - s07e06 () - se00

Any ideas why this might be happening?

---

<div class="post-metadata">

### Author: ![RBoy](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/r/2bfe46/32.png) [@RBoy](https://discussion.mcebuddy2x.com/u/RBoy)
#### Post date: [December 18, 2018, 3:31pm UTC](https://discussion.mcebuddy2x.com/t/file-renaming-doesnt-always-work-properly/2450/2 "2018-12-18T15:31:42Z")

</div>

Sounds like for those shows the metadata is either missing or MCEBuddy isn’t able to read/process it. (season 0 episode 0 etc)

Unfortunately without the conversion logs attached there no way to see what’s going on.

---

<div class="post-metadata">

### Author: ![rnaimon](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/r/838e76/32.png) [@rnaimon](https://discussion.mcebuddy2x.com/u/rnaimon)
#### Post date: [December 23, 2018, 7:05pm UTC](https://discussion.mcebuddy2x.com/t/file-renaming-doesnt-always-work-properly/2450/3 "2018-12-23T19:05:41Z")

</div>

i found this in the logs.

–\> Custom Renaming Command -\> TV Shows%showname% (%premiereyear%)\Season %season%%showname% (%premiereyear%) - s%season%##e%episode%## %episodename%\>  
WARNING\> --\> Cannot find PremiereYear  
WARNING\> --\> Cannot find Season No  
WARNING\> --\> Cannot find PremiereYear  
WARNING\> --\> Cannot find Season No  
WARNING\> --\> Cannot find Episode Name

i recorded these from netflix using playon. i figured all that metadata would be there. so then my next question would be, how do i add it?

---

<div class="post-metadata">

### Author: ![RBoy](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/r/2bfe46/32.png) [@RBoy](https://discussion.mcebuddy2x.com/u/RBoy)
#### Post date: [December 24, 2018, 3:42pm UTC](https://discussion.mcebuddy2x.com/t/file-renaming-doesnt-always-work-properly/2450/4 "2018-12-24T15:42:14Z")

</div>

Attach your log so we can see why the data is unavailable. You’ll have to see the metadata extraction section.

---

<div class="post-metadata">

### Author: ![rnaimon](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/r/838e76/32.png) [@rnaimon](https://discussion.mcebuddy2x.com/u/rnaimon)
#### Post date: [December 26, 2018, 4:06am UTC](https://discussion.mcebuddy2x.com/t/file-renaming-doesnt-always-work-properly/2450/5 "2018-12-26T04:06:54Z")

</div>

I actually figured out that there was a new version of Playon that seemed to fix the missing metadata. However, now I have a new problem. For example, I’m recording the 2014 version of the flash, but it keeps renaming them to the 1990 version. I’ll attach a log file for one of them. I’m not sure what I’m looking for to know why that’s happening.  
[The Flash - s01e11 The Sound and the Fury.mp4-Convert to M4V-2018-12-25T17-03-13.1654014-06-00.log](https://mcebuddy-discussion-forum.s3.dualstack.us-east-1.amazonaws.com/original/1X/c35ab94d5c92ee92f613774e86ec9fe4a40a5ab7.log) (878.4 KB)

---

<div class="post-metadata">

### Author: ![RBoy](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/r/2bfe46/32.png) [@RBoy](https://discussion.mcebuddy2x.com/u/RBoy)
#### Post date: [December 26, 2018, 10:56pm UTC](https://discussion.mcebuddy2x.com/t/file-renaming-doesnt-always-work-properly/2450/6 "2018-12-26T22:56:10Z")

</div>

Hmm, I see a couple of things happening

1. Your filename is using asymmetrical naming, there’s a - after the title but not after the S/E. @Goose can you look into this and see if we can find a long term solution?

2. It appears to be matching with an older 1990 version of Flash because TVDB doesn’t seem to have the latest version

---

<div class="post-metadata">

### Author: ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)
#### Post date: [December 26, 2018, 11:36pm UTC](https://discussion.mcebuddy2x.com/t/file-renaming-doesnt-always-work-properly/2450/7 "2018-12-26T23:36:01Z")

</div>

Fixed, try today’s 2.4.10 BETA build and see if it fixes your issue. Now it should be able to read asymmetrical `-` in the filenames while extracting metadata. This only applies to the `-` character.

---

<div class="post-metadata">

### Author: ![rnaimon](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/r/838e76/32.png) [@rnaimon](https://discussion.mcebuddy2x.com/u/rnaimon)
#### Post date: [December 27, 2018, 4:43pm UTC](https://discussion.mcebuddy2x.com/t/file-renaming-doesnt-always-work-properly/2450/8 "2018-12-27T16:43:09Z")

</div>

Downloading it now. I’ll let you know.

---

<div class="post-metadata">

### Author: ![rnaimon](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/r/838e76/32.png) [@rnaimon](https://discussion.mcebuddy2x.com/u/rnaimon)
#### Post date: [December 30, 2018, 4:28am UTC](https://discussion.mcebuddy2x.com/t/file-renaming-doesnt-always-work-properly/2450/9 "2018-12-30T04:28:36Z")

</div>

This appears to have fixed the flash. I do have issues with other shows where the logs say it can’t find the premiereyear, but then names the show like this. Showname (year) (). Not the end of my world but still strange.

---

<div class="post-metadata">

### Author: ![RBoy](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/r/2bfe46/32.png) [@RBoy](https://discussion.mcebuddy2x.com/u/RBoy)
#### Post date: [December 30, 2018, 3:24pm UTC](https://discussion.mcebuddy2x.com/t/file-renaming-doesnt-always-work-properly/2450/10 "2018-12-30T15:24:55Z")

</div>

Feel free to upload the conversion log so we can see what’s going on

---

<div class="post-metadata">

### Author: ![rnaimon](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/r/838e76/32.png) [@rnaimon](https://discussion.mcebuddy2x.com/u/rnaimon)
#### Post date: [December 30, 2018, 7:21pm UTC](https://discussion.mcebuddy2x.com/t/file-renaming-doesnt-always-work-properly/2450/11 "2018-12-30T19:21:25Z")

</div>

[Alice (1976) - S03E01 - Take Him He’s Yours.ts-Convert to M4V-2018-12-28T19-31-35.3047513-06-00.log](https://mcebuddy-discussion-forum.s3.dualstack.us-east-1.amazonaws.com/original/1X/2b6479e21a608fe140e391a8fe3b5140c21d0b0c.log) (831.0 KB)

Here you go.

---

<div class="post-metadata">

### Author: ![RBoy](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/r/2bfe46/32.png) [@RBoy](https://discussion.mcebuddy2x.com/u/RBoy)
#### Post date: [December 31, 2018, 10:47pm UTC](https://discussion.mcebuddy2x.com/t/file-renaming-doesnt-always-work-properly/2450/12 "2018-12-31T22:47:36Z")

</div>

@Goose can you see if we can parse the premier year from the filename

---

<div class="post-metadata">

### Author: ![rnaimon](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/r/838e76/32.png) [@rnaimon](https://discussion.mcebuddy2x.com/u/rnaimon)
#### Post date: [January 4, 2019, 6:04pm UTC](https://discussion.mcebuddy2x.com/t/file-renaming-doesnt-always-work-properly/2450/13 "2019-01-04T18:04:23Z")

</div>

Here’s another example of not only a movie being renamed incorrectly, but it stripped out all but a minute or so of the show.[The Mummy (2017).mp4-Convert to M4V-2019-01-04T07-29-20.8696695-06-00.log](https://mcebuddy-discussion-forum.s3.dualstack.us-east-1.amazonaws.com/original/1X/69262a59b4d1dd745a22fe6bab422a937a0fd5fb.log) (523.7 KB)

---

<div class="post-metadata">

### Author: ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)
#### Post date: [January 4, 2019, 7:02pm UTC](https://discussion.mcebuddy2x.com/t/file-renaming-doesnt-always-work-properly/2450/14 "2019-01-04T19:02:57Z")

</div>

This feature has been added in today’s build. It can now read the Premiere Year from the Showname title e.g. `Alice (1976) - S03E01 - Episode name`

---

<div class="post-metadata">

### Author: ![rnaimon](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/r/838e76/32.png) [@rnaimon](https://discussion.mcebuddy2x.com/u/rnaimon)
#### Post date: [January 10, 2019, 11:36pm UTC](https://discussion.mcebuddy2x.com/t/file-renaming-doesnt-always-work-properly/2450/15 "2019-01-10T23:36:57Z")

</div>

Just curious how much of the file renaming is based on the source file name versus the metadata in the file? I’m getting lots of errors if they aren’t named right to begin with.

---

<div class="post-metadata">

### Author: ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)
#### Post date: [January 11, 2019, 2:29pm UTC](https://discussion.mcebuddy2x.com/t/file-renaming-doesnt-always-work-properly/2450/16 "2019-01-11T14:29:40Z")

</div>

There is an priority order that is used to determine which one takes preference if there are multiple sources of metadata, assuming that user provided metadata has the highest priority:

1. External metadata files (NFO, XML, ARG etc)
2. Filenames
3. Embedded metadata
4. Internet matching (most fills gaps unless the override option is enabled in the Conversion task Metadata correction page)

---

<div class="post-metadata">

### Author: ![rnaimon](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/r/838e76/32.png) [@rnaimon](https://discussion.mcebuddy2x.com/u/rnaimon)
#### Post date: [January 11, 2019, 2:34pm UTC](https://discussion.mcebuddy2x.com/t/file-renaming-doesnt-always-work-properly/2450/17 "2019-01-11T14:34:39Z")

</div>

I found that I had to go into that correction page and fix it there. Then it started working on this one particular show.

On another note, when I record my shows, some shows have commercials while others don’t. Since they all get recorded to the same location that I monitor, they all get run through the conversion with the commercial skip. I’ve found on the shows that don’t have commercials to begin with, that sometimes parts of the shows get cut out as though it thinks there was a commercial. Is there a good way around that other than to have to put in new conversion task for each show?
