[mythtv-users] Bash Script help please

Brad DerManouelian myth at dermanouelian.com
Tue Oct 10 19:31:45 UTC 2006


On Oct 10, 2006, at 12:22 PM, Jeff volckaert wrote:

>> I haven't been following the whole thread, but is there any reason
>> you're not using mythrename.pl in the contrib folder? Seems to do
>> exactly what you want. With the right flags, you can format the name
>> how you like and make symlinks of the pretty names that link to the
>> default myth names.
> I've seen reference to that in the past, but I'm trying to make a copy
> of the original.  I'm not sure that the rename script would do that
> unless it changed the filename in the backend.
>
> I think the problem is not in the script, but in Myth passing the
> title to the script.  I've been intentionally picking shows with an &
> in the name.  I think Myth is running:
>
> /usr/local/bin/pdatranscode /video 1036_20061010144800.mpg Law & Order
> 20061010144800
>
> and the Linux is looking for an Order command.
>
> Here's a chunk from my log:
>
> 2006-10-10 15:03:48.099 JobQueue: Started "PDA Transcode" for "Law &
> Order" recorded from channel 1036 at Tue Oct 10 14:48:00 2006
> sh: Order: command not found
>
> Is this a bug?  Is there a different way to get TITLE minus the '&'?
>
> Thanks,
> Jeff

If the feature isn't there, it would be super-easy to add. Not sure  
how familiar you are with perl, but copy the symlink code and instead  
of making a symlink, use the copy command. You could also pass it  
through a function to escape or strip non-ascii characters to avoid  
your ampersand issue.



More information about the mythtv-users mailing list