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

Custom pattern bug when used with Atomic Parsley

Mar 31, 2013 at 10:05 AM
Edited Mar 31, 2013 at 3:29 PM
Hello Rboy,

I've been trying to troubleshoot the custom command and so far only way how to fix the bug is for MCEBuddy to pass custom pattern parameters a bit differently.

My custom command is:
c:\atomicparsley.exe CommandParameters = %convertedfile% --overWrite --title "%recordmonthlong% %recordday%, %recorddaylong% %recordhour%%recordhourampm% %episodename%"

With this command I only get first word from %episodename% parameter.
This is because atomic parsley does not accept space in quotation marks which is then nested in another quotation marks ( 2nd quotation marks are needed if you have more than just one parameter, like above )

So for example
--overWrite --title %episodename%
will work and pass everything into title metadata.

But if you have (for example):
--overWrite --title %recordmonthlong% %episodename%
you'd get only recordmonthlong ino the title metadata.

So to fix it I've added another quotation marks around all parameters:
--overWrite --title "%recordmonthlong% %episodename%"
This will work but episode name will include only first word.

After playing with Atomic Parlsey all day yesterday only way to fix this, is for MCEBuddy omit quotation marks that are currently included with each custom parameter and allow user to set them as needed.

__This would fix another bug with custom command parameters where MCEBuddy passes down single quotation mark if %episodename% is blank.__

MCEBuddy.Transcode.CustomCommand --> Read custom command parameters CommandPath = c:\atomicparsley.exe CommandParameters = %convertedfile% --overWrite --title "%recordmonthlong% %recordday%, %recorddaylong% %recordhour%%recordhourampm%. %episodename%" --stik "TV Show" --TVEpisode %episodename% --genre %network% --TVSeasonNum "" --TVEpisodeNum "" --longdesc %episodedescription% CommandHangPeriod = 0 CommandCritical = False

MCEBuddy.Transcode.CustomCommand --> About to run custom command with parameters CommandPath = c:\atomicparsley.exe CommandParameters = %convertedfile% --overWrite --title "%recordmonthlong% %recordday%, %recorddaylong% %recordhour%%recordhourampm%. %episodename%" --stik "TV Show" --TVEpisode %episodename% --genre %network% --TVSeasonNum "" --TVEpisodeNum "" CommandHangPeriod = 0

MCEBuddy.AppWrapper.Base --> Launching process c:\atomicparsley.exe

MCEBuddy.AppWrapper.Base --> Process arguments "D:\MCEBuddyTEMP\working0\Match of the Day_BBC 1_2013_03_30_23_29_00.mp4" --overWrite --title ""March" "30", "Saturday" "11""PM". """ --stik "TV Show" --TVEpisode "" --genre "BBC 1" --TVSeasonNum "" --TVEpisodeNum ""

See highlighted part above and 3x """ where %episodename% should be ( but since this parameter is blank for this TV show, I got " in he title instead of blank space. )

I hope this makes sense. If you need examples of what works and what does not let me know but I spent all day yesterday fighting with this and only way to pass multiple parameters to Atomic Parsley is to use single quotation marks around the whole command.
Mar 31, 2013 at 5:08 PM
Makes sense I will remove the quotation marks and update the documentation accordingly for the next BETA build.

Mar 31, 2013 at 8:08 PM
As always, thank you.
Can you please let me know what build number i should look forward to or can you update this post when I can download the pre-release that includes the fix ?
Apr 1, 2013 at 1:57 AM
in Build 03312013 or later. (not yet uploaded, keep checking)