[mythtv-users] an easier way to create "friendly" names for converted files

Ronald Frazier ron at ronfrazier.net
Thu Jan 3 17:58:50 UTC 2013


On Thu, Jan 3, 2013 at 9:11 AM, Larry Roberts <mythtv at american-hero.com> wrote:
> Perhaps its the non programmer in me but given my title/subtitle will be
> variable lengths how do I take the %TITLE% and %SUBTITLE% variables and get
> them in my script.
>
> I have been referencing the 2 variables as:
>
> CHANID=$1
> STARTTIME=$2
>
> and when I tried to do $3 as my title it only gets "days" versus "days of
> our lives"  Perhaps I can specify a different delimiter in my file???  Again
> this is when I'm officially over my skis...


You need to quote the parameters when you setup the user job. Example:

/usr/local/scripts/myscript %CHANID% %STARTTIMEUTC% "%TITLE%" "%SUBTITLE%"



-- 
Ron Frazier


More information about the mythtv-users mailing list