[mythtv-users] Updating "remove extra audio track" job for storage groups
Michael Stucky
mike at stucky.us
Thu Jan 16 21:06:00 UTC 2014
On Wed, Jan 15, 2014 at 8:22 PM, Raymond Wagner <raymond at wagnerrp.com>wrote:
> On 1/15/2014 8:16 PM, Ian Evans wrote:
>
>> I was using a "remove extra audio track" script that Michael Stucky
>> posted here:
>>
>> http://www.gossamer-threads.com/lists/mythtv/users/547560#547560
>>
>> I recently added a new drive (and added it to the recordings storage
>> group) and wondered why the user job was now failing.
>>
>> Suddenly realized the script has hard-coded the recordings dir:
>> http://www.mythtv.org/wiki/RemoveExtraAudioStreams
>>
>> Not that comfortable with bash scripts or Myth variables, but would it
>> be relatively easy to update to use storage groups and find the
>> recording wherever it is?
>>
>
> You can have the jobqueue give you the specific directory and filename for
> the recording.
>
> http://www.mythtv.org/wiki/Job_Queue#User_Jobs
>
> I have updated my script to eliminate the hard-coded recordings directory
and posted it on the wiki as a "User Job Script":
http://www.mythtv.org/wiki/RemoveExtraAudioStreams
I don't have multiple directories in my recordings storage group so I can't
confirm that it will work for you. It works as always for my setup with
only one directory in the storage group, so please let me know if this
fixes your problem.
Thanks to both of you (Ian and Raymond) for encouraging me to enhance the
functionality of my script!
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20140116/84a6f8a1/attachment.html>
More information about the mythtv-users
mailing list