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

File Renaming Issue

Mar 4, 2016 at 5:22 PM
Edited Mar 4, 2016 at 5:44 PM
I am testing MCEBuddy 2.4.3 to see if it can handle everything I need want to do with my media files but I've hit a few snags that I can't find a reason for. Here's one of them:

MCEBuddy appears to have difficulty with the file names of downloaded TV shows. My media center PC was down for about a week so I downloaded the shows I was unable to record from the Internet. MCEBuddy seems to be having difficulty with renaming these shows. Please advise.

Show: New Girl
Season 5, Episode 9
Original File Name: New.Girl.S05E09.720p.HDTV.x264-AVS
Expected File Name: New Girl\Season 5\S05E09-<episode title>

Actual output is identical to the original file name and the file is relocated to a new folder named New.Girl.

The log shows this:

INFORMATION> 2016-03-04T12:32:22 MCEBuddy.Engine.ConversionJob --> Current System language is English (United States) (eng)
INFORMATION> 2016-03-04T12:32:22 MCEBuddy.Engine.ConversionJob --> Converting file -> \htpc\tvlibrary$\New Girl\Season 5\New.Girl.S05E09.720p.HDTV.x264-AVS[rarbg]\New.Girl.S05E09.720p.HDTV.x264-AVS.mkv
--> Dumping complete information about the file \htpc\tvlibrary$\New Girl\Season 5\New.Girl.S05E09.720p.HDTV.x264-AVS[rarbg]\New.Girl.S05E09.720p.HDTV.x264-AVS.mkv
2016-03-04T12:32:22 MCEBuddy.AppWrapper.Base --> Launching process C:\Program Files\MCEBuddy2x\ffmpeg\ffprobe.exe
2016-03-04T12:32:22 MCEBuddy.AppWrapper.Base --> Process arguments -hide_banner -probesize 100M -analyzeduration 300M -i "\htpc\tvlibrary$\New Girl\Season 5\New.Girl.S05E09.720p.HDTV.x264-AVS[rarbg]\New.Girl.S05E09.720p.HDTV.x264-AVS.mkv"
2016-03-04T12:32:22 MCEBuddy.AppWrapper.Base --> UI Session Admin Process : False
2016-03-04T12:32:22 MCEBuddy.AppWrapper.Base --> Setting process priority to AboveNormal
2016-03-04T12:32:23 MCEBuddy.AppWrapper.Base --> Input #0, matroska,webm, from '\htpc\tvlibrary$\New Girl\Season 5\New.Girl.S05E09.720p.HDTV.x264-AVS[rarbg]\New.Girl.S05E09.720p.HDTV.x264-AVS.mkv':
2016-03-04T12:32:23 MCEBuddy.AppWrapper.Base --> Metadata:
2016-03-04T12:32:23 MCEBuddy.AppWrapper.Base --> ENCODER : mkv 2.1.1 AVS
2016-03-04T12:32:23 MCEBuddy.AppWrapper.Base --> Duration: 00:21:34.04, start: 0.000000, bitrate: 3833 kb/s
2016-03-04T12:32:23 MCEBuddy.AppWrapper.Base --> Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709/unknown/unknown), 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
2016-03-04T12:32:23 MCEBuddy.AppWrapper.Base --> Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
--> Process exited with code 0
INFORMATION> 2016-03-04T12:32:25 MCEBuddy.Engine.ConversionJob --> Running custom commands
2016-03-04T12:32:25 MCEBuddy.Transcode.CustomCommand --> Custom command parameters read ->
PreMetaCustomCommandPath =
PreMetaCustomCommandParameters =
PreMetaCustomCommandHangPeriod = 300
PreMetaCustomCommandCritical = False
PreMetaCustomCommandUISession = False
PreMetaCustomCommandShowWindow = True
PreMetaCustomCommandExitCodeCheck = False
INFORMATION> 2016-03-04T12:32:25 MCEBuddy.Transcode.CustomCommand --> No custom commands found
2016-03-04T12:32:25 MCEBuddy.Engine.ConversionJob --> Finished pre metadata custom command, source file size [KB] 605,575.00
INFORMATION> 2016-03-04T12:32:25 MCEBuddy.Engine.ConversionJob --> Getting show information and banner from Internet sources
2016-03-04T12:32:25 MCEBuddy.MetaData.VideoMetaData --> Extracting metadata from file -> \htpc\tvlibrary$\New Girl\Season 5\New.Girl.S05E09.720p.HDTV.x264-AVS[rarbg]\New.Girl.S05E09.720p.HDTV.x264-AVS.mkv
INFORMATION> 2016-03-04T12:32:25 MCEBuddy.MetaData.FileExtractMetadata --> Extracting NFO Tags
2016-03-04T12:32:25 MCEBuddy.MetaData.FileExtractMetadata --> Extracting XMBC metadata
2016-03-04T12:32:25 MCEBuddy.MetaData.VideoMetaData --> Trying to match nPVR/SiliconDust series showname -> New.Girl.S05E09.720p.HDTV.x264-AVS
2016-03-04T12:32:25 MCEBuddy.MetaData.VideoMetaData --> Video Tags extracted ->
Title: New.Girl
SubTitle: New.Girl.S05E09.720p.HDTV.x264-AVS
Description:
Network:
Network Affiliate:
Parental Rating:
Media Credits:
Genres:
Season: 5
Episode: 9
Banner:
Banner URL:
IMDB Id:
MovieDB Id:
TVDB Id:
Is Show Movie: False
Is Show Sports: False
OriginalBroadcastDateTime: 0001-01-01T00:00:00
RecordedDateTime: 0001-01-01T00:00:00
SeriesPremiereDate: 0001-01-01T00:00:00
CopyProtected: False
SageTV FileID:
SageTV MediaFileID:

2016-03-04T12:32:25 MCEBuddy.MetaData.VideoMetaData --> Checking for metadata title and series correction
INFORMATION> 2016-03-04T12:32:25 MCEBuddy.MetaData.VideoMetaData --> Downloading Series details
2016-03-04T12:32:25 MCEBuddy.MetaData.VideoMetaData --> Meta correction results, dont' overwrite title -> False
INFORMATION> 2016-03-04T12:32:25 MCEBuddy.MetaData.VideoMetaData --> Recording Type Show
INFORMATION> 2016-03-04T12:32:25 MCEBuddy.MetaData.VideoMetaData --> Checking TheTVDB
--> No match found on TVDB
WARNING> 2016-03-04T12:32:25 MCEBuddy.MetaData.VideoMetaData --> TheTVDB failed
INFORMATION> 2016-03-04T12:32:25 MCEBuddy.MetaData.VideoMetaData --> Checking TV.com
WARNING> --> Unable to connect to TV.com
Error -> System.NullReferenceException: Object reference not set to an instance of an object.
at MCEBuddy.MetaData.TV.DownloadSeriesDetails(Boolean matchByAirDate, VideoTags videoTags, Boolean dontOverwriteTitle, Log jobLog)
--> Invalid original broadcast date to match on TV.com
WARNING> 2016-03-04T12:32:25 MCEBuddy.MetaData.VideoMetaData --> TV.com failed
INFORMATION> 2016-03-04T12:32:25 MCEBuddy.MetaData.VideoMetaData --> Checking TMDB.com
--> No match found on TMDB Series
WARNING> 2016-03-04T12:32:25 MCEBuddy.MetaData.VideoMetaData --> TMDB.com failed
INFORMATION> 2016-03-04T12:32:25 MCEBuddy.MetaData.VideoMetaData --> Checking IMDB
--> Searching IMDB Series with result offset 0 and overwrite title False
WARNING> --> Unable to connect to IMDB
Error -> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 3, position 1.
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at MCEBuddy.MetaData.IMDB.DownloadSeriesDetails(Boolean matchByAirDate, VideoTags videoTags, Boolean dontOverwriteTitle, Log jobLog, Int32 offset)
--> Invalid original broadcast date to match on IMDB
WARNING> 2016-03-04T12:32:26 MCEBuddy.MetaData.VideoMetaData --> IMDBApi failed
2016-03-04T12:32:26 MCEBuddy.MetaData.VideoMetaData --> Updated Video Tags after downloading details ->
Title: New.Girl
SubTitle: New.Girl.S05E09.720p.HDTV.x264-AVS
Description:
Network:
Network Affiliate:
Parental Rating:
Media Credits:
Genres:
Season: 5
Episode: 9
Banner:
Banner URL:
IMDB Id:
MovieDB Id:
TVDB Id:
Is Show Movie: False
Is Show Sports: False
OriginalBroadcastDateTime: 0001-01-01T00:00:00
RecordedDateTime: 0001-01-01T00:00:00
SeriesPremiereDate: 0001-01-01T00:00:00
CopyProtected: False
SageTV FileID:
SageTV MediaFileID:

INFORMATION> 2016-03-04T12:32:26 MCEBuddy.Engine.ConversionJob --> Running custom commands
--> Custom Renaming Command -> %showname%\Season %season%\S%season%##E%episode%##-%episodename%
--> Custom Renaming Command -> %showname%\Season %season%\S%season%##E%episode%##-%episodename%
2016-03-04T12:32:26 MCEBuddy.Transcode.CustomCommand --> Custom command parameters read ->
PreCustomCommandPath =
PreCustomCommandParameters =
PreCustomCommandHangPeriod = 300
PreCustomCommandCritical = False
PreCustomCommandUISession = False
PreCustomCommandShowWindow = True
PreCustomCommandExitCodeCheck = False
INFORMATION> 2016-03-04T12:32:26 MCEBuddy.Transcode.CustomCommand --> No custom commands found
2016-03-04T12:32:26 MCEBuddy.Engine.ConversionJob --> Finished pre remuxing custom command, source file size [KB] 605,575.00
INFORMATION> 2016-03-04T12:32:26 MCEBuddy.Engine.ConversionJob --> Checking for disk space
2016-03-04T12:32:26 MCEBuddy.Engine.ConversionJob --> File size -> 0.5775219 GB
2016-03-04T12:32:26 MCEBuddy.Engine.ConversionJob --> Destination space -> 83.80539 GB
2016-03-04T12:32:26 MCEBuddy.Engine.ConversionJob --> Working space -> 32.61256 GB
2016-03-04T12:32:26 MCEBuddy.Engine.ConversionJob --> Required free space -> 1.443805 GB
2016-03-04T12:32:26 MCEBuddy.Engine.ConversionJob --> Max concurrent conversion jobs -> 1
INFORMATION> 2016-03-04T12:32:26 MCEBuddy.Engine.ConversionJob --> Checking for SRT File
INFORMATION> 2016-03-04T12:32:26 MCEBuddy.Engine.ConversionJob --> Checking for EDL, EDLP, VPRJ or DTB XML files
INFORMATION> 2016-03-04T12:32:26 MCEBuddy.Engine.ConversionJob --> Copying source file to working directory
INFORMATION> 2016-03-04T12:32:26 MCEBuddy.Engine.ConversionJob --> Copying source video to working directory Source:\htpc\tvlibrary$\New Girl\Season 5\New.Girl.S05E09.720p.HDTV.x264-AVS[rarbg]\New.Girl.S05E09.720p.HDTV.x264-AVS.mkv, Target:C:\Program Files\MCEBuddy2x\working0\New.Girl.S05E09.720p.HDTV.x264-AVS.mkv
INFORMATION> 2016-03-04T12:32:35 MCEBuddy.Engine.ConversionJob -->
--> Performance Metrics for the Current Conversion


Is there something I can do to help MCEBuddy's metadata search succeed?

Thanks,

MJ
Mar 4, 2016 at 6:00 PM
go through your log file to see what metadata MCEbuddy is extracting from your filename. The metadata drives the naming structure

BTW if you're posting filenames/data on the forum use the appropriate tags otherwise the forum eats up the letters. I can't see what you're posted above, some letters are missing.

Mar 4, 2016 at 7:45 PM
rboy1, thanks for the reply. What tag should I be using, code? I didn't post the log in its entirety, I only posted the section I thought was relative to the metadata search and renaming. This log is specific to this particular episode. The mcebuddy.log doesn't show as much detail. Is there another one I should be looking at?

Otherwise, using this log as an example I can see that the metadata search failed for every provider that was queried because MCEBuddy isn't ignoring special characters (like periods) so it queried the metadata providers using New.Girl instead of New Girl. I'm thinking that I'm not the only person who's run into this before but I've had some difficulty finding a resolution.
Title: New.Girl
SubTitle: New.Girl.S05E09.720p.HDTV.x264-AVS
Description: 
Network: 
Network Affiliate: 
Parental Rating: 
Media Credits: 
Genres: 
Season: 5
Episode: 9
Banner: 
Banner URL: 
IMDB Id: 
MovieDB Id: 
TVDB Id: 
Is Show Movie: False
Is Show Sports: False
OriginalBroadcastDateTime: 0001-01-01T00:00:00
RecordedDateTime: 0001-01-01T00:00:00
SeriesPremiereDate: 0001-01-01T00:00:00
CopyProtected: False
SageTV FileID: 
SageTV MediaFileID: 
Thanks again for the reply. I'm looking forward to your advice.

MJ
Mar 4, 2016 at 8:21 PM
Yeah I see. While mcebuddy has support for many naming conventions it's a limited list. See the sticky thread on supported naming conventions. You'll have have your files in one of those for it work

Mar 5, 2016 at 7:44 PM
An expert settings - correction for New.Girl to New Girl will currently allow it to work.

https://mcebuddy2x.codeplex.com/discussions/640539
I describe the issues I'm seeing with it.
Mar 6, 2016 at 1:18 PM
Yes that's correct, because TVDB can recognize "New Girl" but not "New.Girl". If you'd say the solution is to remove the dots then a genuine program Title e.g "K.C. Undercover" would stop working.
At this point given that you're using custom filenames use the expert features setting to remove the period from your title to get it to work.

Mar 6, 2016 at 2:40 PM
Okay so we've come up with a new algorithm to match Metadata and title with online providers.
Now MCEbuddy can ignore special characters (._-) in Title names while looking for information online

Try out the latest todays' 2.4.4 BETA build

Marked as answer by rboy1 on 3/8/2016 at 8:48 AM
Mar 16, 2016 at 11:32 PM
THANK YOU!!!!

I haven't yet fully tested the 2.4.4. beta release but I didn't want to let another day go by without replying, especially since it's been 10 days since your update already. Where does the time go?

Anyway my initial tests turned out great! I used the beta to process a few shows that I held onto with " . " in the name and they were processed exactly as I was hoping they would be.

This was a great edition to the software! Thanks again for the replies and speedy changes.

MJ