Created
June 25, 2012 22:06
-
-
Save alanzhao/2991668 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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