I’m trying to use the following string to rename my TV shows but it’s falling back to default.
%showname%%ifpremieredate%< (%premiereyear%)>\Season %ifseason%<%season%##,00>\%showname% - S%ifseason%<%season%##,00>E%episode%## - %episodename%
Here is the error:
INFORMATION> 2020-09-10T15:59:43 MCEBuddy.Engine.ConversionJob --> Running custom commands --> Custom Renaming Command -> %showname%%ifpremieredate%< (%premiereyear%)>\Season %ifseason%<%season%##,00>\%showname% - S%ifseason%<%season%##,00>E%episode%## - %episodename% WARNING> --> Error in file naming format detected, fallback to default naming convention. Error : System.IndexOutOfRangeException: Index was outside the bounds of the array. at MCEBuddy.MetaData.CustomRename.CustomRenameFilename(String customRenamePattern, String& newFileName, String& destinationPath, String sourceVideo, String relativeSourcePath, VideoTags metaData, Log jobLog) at MCEBuddy.MetaData.CustomRename.CustomRenameFilename(String customRenamePattern, String& newFileName, String& destinationPath, String sourceVideo, String relativeSourcePath, VideoTags metaData, Log jobLog) at MCEBuddy.MetaData.CustomRename.GetRenameByMetadata(ConversionJobOptions conversionOptions, VideoMetaData metaData, String originalFileName, String renamedFileExt, String& newFileName, String& subDestinationPath, Log jobLog) WARNING> --> No Season and Episode information available, using episode name/record date --> Custom Renaming Command -> %showname%%ifpremieredate%< (%premiereyear%)>\Season %ifseason%<%season%##,00>\%showname% - S%ifseason%<%season%##,00>E%episode%## - %episodename% WARNING> --> Error in file naming format detected, fallback to default naming convention. Error : System.IndexOutOfRangeException: Index was outside the bounds of the array. at MCEBuddy.MetaData.CustomRename.CustomRenameFilename(String customRenamePattern, String& newFileName, String& destinationPath, String sourceVideo, String relativeSourcePath, VideoTags metaData, Log jobLog) at MCEBuddy.MetaData.CustomRename.CustomRenameFilename(String customRenamePattern, String& newFileName, String& destinationPath, String sourceVideo, String relativeSourcePath, VideoTags metaData, Log jobLog) at MCEBuddy.MetaData.CustomRename.GetRenameByMetadata(ConversionJobOptions conversionOptions, VideoMetaData metaData, String originalFileName, String renamedFileExt, String& newFileName, String& subDestinationPath, Log jobLog) WARNING> --> No Season and Episode information available, using episode name/record date
Here are the values detected:
SeriesPremiereDate: 1985-05-05T00:00:00
Season: 0
Episode: 6