stage-manager/lib/models/video.rb

25 lines
453 B
Ruby
Raw Normal View History

2023-03-04 11:14:54 -05:00
require 'kramdown'
class Video < Sequel::Model
many_to_one :channel
def ensureDirectoryStructure()
sub_dirs = ['Audio', 'B-Roll', 'Clips', 'Images', 'Export']
sub_dirs.each do |d|
sub_path = File.join(
@values[:directory_path],
d
)
unless Dir.exist?(sub_path)
Dir.mkdir(sub_path)
end
end
end
2023-03-04 11:14:54 -05:00
def parseScript()
return Kramdown::Document.new(@values[:script]).to_html
end
end