vidispine 1.6.1 → 1.6.2

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: 45f448716addb6abd5adb47888586536457139ee
4
- data.tar.gz: d10f2fc1f7145eb4b290a44890d980a004c53c33
3
+ metadata.gz: a27f0cbb0db7f853e993d573f5436c25ed9a436b
4
+ data.tar.gz: 18eee5d0382a6ae93cc700b837186119e008a7f5
5
5
  SHA512:
6
- metadata.gz: dbfb4f022fe2bf933077bd6384006203977aad2eba11cfc089b2890f57e0b4eda07dbf24bed7458c08baed2a53de966cfcb95b8ce3cbd0206dcf4012025a4ebb
7
- data.tar.gz: 65209f2392d17501dc0e66bf6e1e772e15d41baa398773ec2bccaf9d0c0f6717987d49707002f55975939d02fbeb4df011b573f8c21658b1360cf7dace645c46
6
+ metadata.gz: 26d3f331b4ef900002419e9a5c6e2ec2389dfa337e47322eafd859057a90ccee340ea4ab6efb9fb3b2476c09ff1800d679c93d0dabec3ed81b6f9328923ed6bb
7
+ data.tar.gz: 244e284425cee04712f1a870cd944d0414a7660e5e9f918510dc98d822d2b80d66092350fd6efe54831e3947c36137a38b86aa0c89439c882adb8f928af33155
@@ -666,7 +666,9 @@ module Vidispine
666
666
  item_metadata_set(:item_id => item_id, :metadata_document => metadata_document)
667
667
  end
668
668
 
669
- if options[:add_item_to_collection]
669
+
670
+ should_add_to_collection = options.fetch(:add_item_to_collection, [ :collections, :collection, :collection_name, :collection_id, :file_path_collection_name_position ].any? { |v| args.keys.include?(v) })
671
+ if should_add_to_collection
670
672
  logger.debug { 'Determining Collection to Add the Item to.' }
671
673
  collections = determine_collection(args, options)
672
674
  if collections.is_a?(Array)
@@ -720,7 +722,7 @@ module Vidispine
720
722
 
721
723
 
722
724
  # 7. Generate the Transcode of the item
723
- transcode_tag = args.fetch(:transcode_tag, 'lowres')
725
+ transcode_tag = args.fetch(:transcode_tag, false)
724
726
  should_transcode = transcode_tag and !transcode_tag.empty? and transcode_tag.to_s.downcase != 'false'
725
727
 
726
728
  should_wait_for_import_job_completion = should_transcode || options.fetch(:wait_for_import_job, true)
@@ -1,3 +1,3 @@
1
1
  module Vidispine
2
- VERSION = '1.6.1'
2
+ VERSION = '1.6.2'
3
3
  end
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.6.1
4
+ version: 1.6.2
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-11-20 00:00:00.000000000 Z
11
+ date: 2019-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler