[mythtv-users] Bash Script help please

Jon Larson jtlarson at u.washington.edu
Tue Oct 10 19:48:12 UTC 2006


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
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

I'd suggest consulting the myth2ipod script for ideas. It has a section 
about half way down that does exactly this. In fact, I already use it to 
make videos (and a separate version for mp3s) that I can watch on my 
iPaq, so you might just consider using/modifying that script instead.

For my purposes, I modified it to generate a separate RSS feed for each 
title, but there's no reason you couldn't just comment the RSS section 
out if you don't want it.

Jon






More information about the mythtv-users mailing list