perform remote_path = params[:remote_path] ext = File.extname(remote_path) local_path = LocalStorage.make_tmp_filename(ext) RemoteStorage::Service.new(provider).with_session do |session| session.fetch(remote_path, local_path) end local_path end end
perform fingerprint = params[:fingerprint] video = run(Video::Download, remote_path: fingerprint.path) run Fingerprint::Netresult, fingerprint: fingerprint, video: video run Fingerprint::Youtube, fingerprint: fingerprint, video: video end end
field :title, type: String field :description, type: String field :exhibition_date, type: DateTime field :path, type: String embeds_one :program embeds_one :channel end