vidispine 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e06f7c248d0a30185075abb17cc5c77a713051d
|
4
|
+
data.tar.gz: 435188fd53cf0ea96f5cfbb325ff3199d1b421e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f889f18c5e2a7a59bb2a6de00babe0e04801db3f49d4ca3fc8cee0eb7dafe56131844d3792fb54b2eb747df107654c15f6eb630d04d6beb754a1c3f096e4714
|
7
|
+
data.tar.gz: 54f602dc6e2d51ae693d9104b77a413183242c43f8035db473271938d2d6deb21dd515ba0af94597de7d37213453f5543b516c4dfa5690df54d9918e2ded8764
|
@@ -9,22 +9,27 @@ module Vidispine::API::Client::Requests
|
|
9
9
|
PARAMETERS = [
|
10
10
|
{ :name => :item_id, :required => true, :send_in => :path },
|
11
11
|
{ :name => :item_type, :required => true, :send_in => :path },
|
12
|
-
|
13
|
-
:
|
14
|
-
:tag,
|
15
|
-
:original,
|
16
|
-
:createPosters,
|
12
|
+
|
13
|
+
:allowReimport,
|
17
14
|
:createThumbnails,
|
18
|
-
:overrideFastStart,
|
19
|
-
:requireFastStart,
|
20
15
|
:fastStartLength,
|
16
|
+
:fileId,
|
21
17
|
:growing,
|
18
|
+
:index,
|
19
|
+
:jobmetadata,
|
20
|
+
'no-transcode',
|
22
21
|
:notification,
|
23
22
|
:notificationDta,
|
23
|
+
:original,
|
24
|
+
:overrideFastStart,
|
24
25
|
:priority,
|
25
|
-
:
|
26
|
+
:resourceId,
|
27
|
+
:requireFastStart,
|
26
28
|
:settings,
|
27
|
-
:
|
29
|
+
:shapeId,
|
30
|
+
:tag,
|
31
|
+
:thumbnailService,
|
32
|
+
:uri
|
28
33
|
]
|
29
34
|
|
30
35
|
def after_process_parameters
|
@@ -537,11 +537,13 @@ module Vidispine
|
|
537
537
|
# @option args [String] :file_id
|
538
538
|
# @option args [Boolean] :create_thumbnails (true)
|
539
539
|
# @option args [Integer|false] :create_posters (3)
|
540
|
+
# @option args [Hash] :import_args ({})
|
540
541
|
#
|
541
542
|
# @param [Hash] options
|
542
543
|
# @option options [Boolean] :add_item_to_collection
|
543
544
|
# @option options [Boolean] :wait_for_transcode_job (false)
|
544
545
|
# @option options [Boolean] :skip_transcode_if_shape_with_tag_exists (true)
|
546
|
+
# @option options [Boolean] :use_placeholder_import (true)
|
545
547
|
#
|
546
548
|
# @return [Hash]
|
547
549
|
def item_add_using_file_path(args = { }, options = { })
|
@@ -668,10 +670,21 @@ module Vidispine
|
|
668
670
|
create_posters = args.fetch(:create_posters, 3)
|
669
671
|
|
670
672
|
unless shape
|
673
|
+
import_args_in = args[:import_args]
|
674
|
+
|
675
|
+
import_args = { :item_id => item_id, :file_id => file_id, :tag => original_shape_tag_name }
|
676
|
+
import_args.merge!(symbolize_keys(import_args_in, false)) if import_args_in.is_a?(Hash)
|
677
|
+
|
678
|
+
use_placeholder_import = options.fetch(:use_placeholder_import, true)
|
679
|
+
if use_placeholder_import
|
680
|
+
import_args[:item_type] ||= 'container'
|
681
|
+
end
|
682
|
+
|
671
683
|
# 6. Add the file as the original shape
|
672
684
|
logger.debug { 'Adding the file as the Original Shape.' }
|
673
|
-
item_shape_import_response =
|
674
|
-
|
685
|
+
item_shape_import_response = use_placeholder_import ?
|
686
|
+
import_placeholder_item(import_args) :
|
687
|
+
item_shape_import(import_args)
|
675
688
|
_response[:item_shape_import] = item_shape_import_response
|
676
689
|
|
677
690
|
job_id = item_shape_import_response['jobId']
|
data/lib/vidispine/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vidispine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Whitson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|