[mythtv-users] User Job to rip subtitles from each program
David Crawford
davidcrawford83 at gmail.com
Fri Feb 3 18:06:06 UTC 2012
Yes, i thought you might be doing that and im trying my best but getting a
bit confused.
Would it be "be" and "chanid"? what is "be"? supposed to be?
On 3 February 2012 18:03, Raymond Wagner <raymond at wagnerrp.com> wrote:
> On 2/3/2012 12:50, David Crawford wrote:
>
> On 3 February 2012 17:45, Raymond Wagner <raymond at wagnerrp.com> wrote:
>
>> On 2/3/2012 12:41, David Crawford wrote:
>>
>> On 3 February 2012 17:34, Raymond Wagner <raymond at wagnerrp.com> wrote:
>>
>>> On 2/3/2012 12:23, David Crawford wrote:
>>> > if len(sys.argv) != 3:
>>> > chanid, starttime = sys.argv[1:3]
>>>
>>> Looks like this one's my fault. You want it to run only when you have
>>> the proper number of command line arguments. This does the opposite.
>>>
>>> if len(sys.argv) != 3:
>>> raise Exception('Invalid argument count')
>>> chanid, starttime = sys.argv[1:3]
>>>
>>> > prog = be.getRecording(<chanid>, <starttime>)
>>>
>>> "<chanid>" and "<starttime>" are still not valid variables.
>>
>>
>> So what can i do about "<chanid>" and "<starttime>" ?
>>
>>
>> Use two variables you've already defined, that you think would be
>> storing values for those two pieces of data. (Hint: You've only defined
>> three variables so far.)
>>
>>
> %DIR% and %FILE%?
>
>
> Those are strings that get substituted in for values as they get passed
> though the jobqueue on the way to being executed. Since the top of the
> script, you've defined three variables: "be", "chanid", and "starttime".
> Now two of those make sense for what should be used in place of "<chanid>"
> and "<starttime>".
>
> In case you haven't realized, I've been giving you these hints in an
> attempt to get you to read through the code and try to understand what it's
> doing.
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20120203/33d5562e/attachment.html
More information about the mythtv-users
mailing list