Skip to content

Commit

Permalink
Merge pull request vimeo#38 from greedo/issue_37_fix
Browse files Browse the repository at this point in the history
return video uri
  • Loading branch information
sclm committed Sep 23, 2014
2 parents 34a437d + 0048c84 commit 2522f4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vimeo/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def upload(self, filename, upgrade_to_1080=False):
data={'type': 'streaming',
'upgrade_to_1080': 'true' if upgrade_to_1080 else 'false'})

self._perform_upload(filename, ticket)
return self._perform_upload(filename, ticket)

def replace(self, video_uri, filename, upgrade_to_1080=False):
"""Replace the video at the given uri with the named source file."""
Expand All @@ -27,7 +27,7 @@ def replace(self, video_uri, filename, upgrade_to_1080=False):
data={'type': 'streaming',
'upgrade_to_1080': 'true' if upgrade_to_1080 else 'false'})

self._perform_upload(filename, ticket)
return self._perform_upload(filename, ticket)

def _perform_upload(self, filename, ticket):
"""Take an upload ticket and perform the actual upload."""
Expand Down

0 comments on commit 2522f4f

Please sign in to comment.