From 367854abb732d90ecee9bb01092599fc03628afb Mon Sep 17 00:00:00 2001 From: libras Date: Mon, 14 Apr 2014 17:17:53 -0300 Subject: [PATCH] Atualiza chamada do core --- app/controllers/api/videos_controller.rb | 4 ++-- app/controllers/static_controller.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/api/videos_controller.rb b/app/controllers/api/videos_controller.rb index 1cdcf6f..e120da0 100644 --- a/app/controllers/api/videos_controller.rb +++ b/app/controllers/api/videos_controller.rb @@ -6,9 +6,9 @@ class Api::VideosController < Api::BaseController create! { if @video.closed_caption == 1 || @video.closed_caption == 3 - cmd = "../vlibras-core/./gtaaas #{@video.closed_caption} public#{@video.url} 1 #{@video.subtitle.window_position} #{@video.window_size} #{@video.transparency} #{@video.id} &" + cmd = "../vlibras-core/./vlibras #{@video.closed_caption} public#{@video.url} 1 #{@video.subtitle.window_position} #{@video.window_size} #{@video.transparency} #{@video.id} &" else - cmd = "../vlibras-core/./gtaaas 2 public#{@video.url} public#{@video.legend} 1 #{@video.window_position} #{@video.window_size} #{@video.transparency} #{@video.id} &" + cmd = "../vlibras-core/./vlibras 2 public#{@video.url} public#{@video.legend} 1 #{@video.window_position} #{@video.window_size} #{@video.transparency} #{@video.id} &" end system(cmd) } diff --git a/app/controllers/static_controller.rb b/app/controllers/static_controller.rb index 917f206..fe224a8 100644 --- a/app/controllers/static_controller.rb +++ b/app/controllers/static_controller.rb @@ -31,9 +31,9 @@ class StaticController < ApplicationController end if @presenter.subtitle.closed_caption == 1 || @presenter.subtitle.closed_caption == 3 - cmd = "../vlibras-core/./gtaaas #{@presenter.subtitle.closed_caption} public#{@presenter.subtitle.url} 1 #{@presenter.subtitle.window_position} #{@presenter.subtitle.window_size} #{@presenter.subtitle.transparency} #{@presenter.subtitle.id} &" + cmd = "../vlibras-core/./vlibras #{@presenter.subtitle.closed_caption} public#{@presenter.subtitle.url} 1 #{@presenter.subtitle.window_position} #{@presenter.subtitle.window_size} #{@presenter.subtitle.transparency} #{@presenter.subtitle.id} &" else - cmd = "../vlibras-core/./gtaaas 2 public#{@presenter.subtitle.url} public#{@presenter.subtitle.legend} 1 #{@presenter.subtitle.window_position} #{@presenter.subtitle.window_size} #{@presenter.subtitle.transparency} #{@presenter.subtitle.id} &" + cmd = "../vlibras-core/./vlibras 2 public#{@presenter.subtitle.url} public#{@presenter.subtitle.legend} 1 #{@presenter.subtitle.window_position} #{@presenter.subtitle.window_size} #{@presenter.subtitle.transparency} #{@presenter.subtitle.id} &" end #raise cmd.inspect system(cmd) -- libgit2 0.21.2