Skip to content

Instantly share code, notes, and snippets.

@alanzhao
Created June 25, 2012 22:06
Show Gist options
  • Save alanzhao/2991668 to your computer and use it in GitHub Desktop.
Save alanzhao/2991668 to your computer and use it in GitHub Desktop.
unless content
download_file_name = Digest::MD5.hexdigest(item[:guid].to_s)
download_path = download(download_file_name, item[:url])
content = OneScreen::Internal::Content.upload({
:file_uri => download_path,
:name => item[:title],
:short_description => item[:short_description],
:long_description => item[:long_description],
:tags => item[:tags],
:content_type => "video",
:metadata => item[:metadata],
:labels => @labels
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment