This project has moved and is read-only. For the latest updates, please go here.

Metadata correction based on filename

Nov 16, 2014 at 2:20 PM
Hello, is it possible to give the %showname% based on the filename.

I have Playlater to record from Hulu which I then pass to MCEBuddy for ad removal then finally pass to my Plex server.

The filename Playlater generates is Show - S01E01 - episode desc.ext

ie. I Love Lucy - s06e24 - Country Club Dance

However, the metadata for the title only reflects the episode and episode desc.

ie. s06e24 - Country Club Dance

The problem is MCE gets the showname from the Title as shown from the log.

INFORMATION> 2014-11-16T21:42:02 MCEBuddy.Engine.ConversionJob --> Getting show information and banner from Internet sources
2014-11-16T21:42:02 MCEBuddy.MetaData.VideoMetaData --> Extracting metadata from file -> M:\PlayLater Shows\I Love Lucy - s06e24 - Country Club Dance.mp4
INFORMATION> 2014-11-16T21:42:02 MCEBuddy.MetaData.VideoMetaData --> Extracting Generic Tags
INFORMATION> 2014-11-16T21:42:02 MCEBuddy.MetaData.VideoMetaData --> Trying to extract Artwork from file
INFORMATION> 2014-11-16T21:42:02 MCEBuddy.MetaData.VideoMetaData --> Read Tags: MPEG4 file detected using AppleTag
2014-11-16T21:42:02 MCEBuddy.MetaData.VideoMetaData --> Extracted Generic Tags: Title: s06e24 - Country Club Dance


I have MCEBuddy move the finished (clean) file to a new folder as read by Plex
custom file renaming
%showname%\Season %season%\%originalfilename%

which results in

s06e24 - Country Club Dance/Season 6/I Love Lucy - s06e24 - Country Club Dance

Now, this used to work in 2.3.13 and it worked great, but somehow it does not work anymore with 2.3.15

I love the speed of 2.3.15 but its a pain now moving the finished recordings to their individual folders and fixing the metadata in Plex

Please help.
Nov 16, 2014 at 11:03 PM
Can you please explain what you mean by this worked in 2.3.13 but not in 2.3.15. Specially what output were you seeing in 2.3.13 and what are you seeing in 2.3.15? It would be even better if you can attach the 2 logs.
Nov 17, 2014 at 1:30 AM
I did mean that the expected output was achieved in 2.3.13, I don't really know why but it did.

For example, for the same file.

Filename : I Love Lucy - s06e24 - Country Club Dance
with Metadata "Title" set to "s06e24 - Country Club Dance "
custom file renaming : %showname%\Season %season%\%originalfilename%


in 2.3.13 it would move it to the following folder:

I Love Lucy\Season\I Love Lucy - s06e24 - Country Club Dance

Note: the missing season number, this is what I get with 2.3.13, which can be read correctly by Plex


in 2.3.15 it would move it to the following folder:

s06e24 - Country Club Dance\Season 6\I Love Lucy - s06e24 - Country Club Dance

Note: the correct season number is now set, but show is incorrect.


I was using 2.3.13 for a long time with the same version of PlayLater, and had no issues.
I am still using the same version of PlayLater, the only difference is the upgrade to 2.3.15.

Sorry, I can't give you more information, I never reviewed the logs of 2.3.13 since it was working for me.

I'll reinstall 2.3.13 later and reprocess the file and review the log if you would like.


Sorry, I can't attach the logs, as there seems to be no attachment option to the thread.
Nov 17, 2014 at 1:36 AM
Here is the log for 2.3.15 for the file.

MCEBuddy 2.3.15 Sample Log File


I'll send 2.3.13 log file once I have it done.
Nov 17, 2014 at 1:50 AM
Got it, let me do some tests I think I know what's going on. It may be interfering with the naming pattern used by MCEBuddy to recognize other recording formats.
Nov 17, 2014 at 2:20 AM
Here is the log for 2.3.13 for the same file. As expected, it went to the right folder. Hope you figure it out.

MCEBuddy 2.3.13 Sample Log File


BTW, that was an excruciating slow process, good job on making 2.3.15 fly.
Nov 17, 2014 at 7:31 PM
:)) that's one way to appreciate the new builds, go back to the old ones ;)
Nov 17, 2014 at 7:36 PM
Okay there's something going on the with reading of the metadata from the MP4 file. See this
2.3.13
INFORMATION> 2014-11-17T09:47:54 MCEBuddy.MetaData.VideoMetaData --> Extracting Generic Tags
INFORMATION> 2014-11-17T09:47:54 MCEBuddy.MetaData.VideoMetaData --> Trying to extract Artwork from file
INFORMATION> 2014-11-17T09:47:54 MCEBuddy.MetaData.VideoMetaData --> Read Tags: MPEG4 file detected using AppleTag
WARNING> 2014-11-17T09:47:54 MCEBuddy.MetaData.VideoMetaData --> Unable to extract meta data from file M:\PlayLater Shows\I Love Lucy - s06e24 - Country Club Dance.mp4. Index was outside the bounds of the array.
2014-11-17T09:47:54 MCEBuddy.MetaData.VideoMetaData --> Video Tags extracted -> Title: I Love Lucy
SubTitle:
Description: Lucy leads a glamour revolt among the suburban housewives when their husbands are momentarily overwhelmed by a pretty visitor at a country club dance.
Network:
Genres:
Season: 0
Episode: 0
Banner: C:\Program Files\MCEBuddy2x\cache\s06e24 - Country Club Dance.jpg
Banner URL:
IMDB MovieId:
MovieDB MovieId:
TVDB SeriesId:
Is Show Movie: False
OriginalBroadcastDateTime: 1900-01-01T08:00:00
RecordedDateTime: 1900-01-01T08:00:00
CopyProtected: False
This from 2.3.15
INFORMATION> 2014-11-16T21:42:02 MCEBuddy.MetaData.VideoMetaData --> Extracting Generic Tags
INFORMATION> 2014-11-16T21:42:02 MCEBuddy.MetaData.VideoMetaData --> Trying to extract Artwork from file
INFORMATION> 2014-11-16T21:42:02 MCEBuddy.MetaData.VideoMetaData --> Read Tags: MPEG4 file detected using AppleTag
2014-11-16T21:42:02 MCEBuddy.MetaData.VideoMetaData --> Extracted Generic Tags: Title: s06e24 - Country Club Dance
SubTitle:
Description: Lucy leads a glamour revolt among the suburban housewives when their husbands are momentarily overwhelmed by a pretty visitor at a country club dance.
Network:
Parental Rating:
Media Credits:
Genres:
Season: 6
Episode: 24
Banner: C:\Program Files\MCEBuddy2x\cache\s06e24 - Country Club Dance-extract.jpg
Banner URL:
IMDB MovieId:
MovieDB MovieId:
TVDB SeriesId:
Is Show Movie: False
Is Show Sports: False
OriginalBroadcastDateTime: 1900-01-01T08:00:00
RecordedDateTime: 1900-01-01T08:00:00
SeriesPremiereDate: 1900-01-01T08:00:00
CopyProtected: False
There are significant differences in reading the metadata. To fix this I will need your original MP4 file. (M:\PlayLater Shows\I Love Lucy - s06e24 - Country Club Dance.mp4)

I need to deep dive into the file to see what's going on why it's reading it different. You can upload it directly to the MCEBuddy server. See the read me posting thread for instruction on how to upload (either directly using Windows Explorer or using a FTP client).

Post back once it's done
Nov 17, 2014 at 7:45 PM
Okay I think I figured it out. In 2.3.13 MCEBuddy would read the TVShowName from the metadata which in your case Read the correct name.
In 2.3.15 to fix some bugs and be compliant MCEBuddy started reading the "Title" metadata and ignored the Showname if the Title metadata was found ( in addition to other details like season and episode). In your case the title contains the filename and not the showname hence the change in the extracted information.

Go ahead and upload the MP4 file anyways for analysis and let us see what can be done.
Nov 17, 2014 at 11:56 PM
I've put a new build with this test fix. It should read the ShowTitle correctly now. Still go ahead with the MP4 upload so we can test it.
Marked as answer by rboy1 on 11/17/2014 at 3:56 PM
Nov 18, 2014 at 4:33 AM
Ok, I'll upload it when I get home.

Glad to know there is progress, will try it tonight.
Nov 18, 2014 at 12:39 PM
Is the new fix in 2.3.15 or 2.4.1 Beta?
Nov 18, 2014 at 1:02 PM
Ok, I've uploaded a sample PlayLater recorded video, I placed in "UPLOAD/PlayLater Sample File" directory.

Also, does MB 2.4.1 have a 64-bit version?
Nov 18, 2014 at 3:20 PM
Ok, just installed the latest build of 2.4.1, and happy to report that it works and places it in the right folder with the correct season.

Will just now wait for the 64-bit version.
Nov 18, 2014 at 4:35 PM
It should be up shortly.