Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit857e564

Browse files
committed
options now work for job.create; update docstring
1 parent99b5fe9 commit857e564

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎zencoder/zencoder.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,17 @@ def create(self, input, outputs=None, options=None):
169169
"""
170170
Create a job
171171
172+
@param input: the input url as string
173+
@param outputs: a list of output dictionaries
174+
@param options: a dictionary of job options
172175
"""
173176
data= {"api_key":self.api_key,"input":input}
174177
ifoutputs:
175178
data['outputs']=outputs
179+
176180
ifoptions:
177-
data['options']=options
181+
data.update(options)
182+
178183
returnself.post(self.base_url,body=self.encode(data))
179184

180185
deflist(self,page=1,per_page=50):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp