strawberry_api 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/strawberry_api/client/libraries.rb +6 -6
- data/lib/strawberry_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02a14014b6f9a7330a1118c2343625cbb00b4062944e4a92e59d7e714b189ae9
|
4
|
+
data.tar.gz: 99158a39274a733acebe158963264f142a938699530bb6c53b6f413d4b0049c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85ddaa4131e9ce54af2f7dfed720a9c9bc39c61d41c82777e830f446a9640ad7245ea7ee14e09c177d4ed8979d71f6f55a55739a99645565ad938d54a2a73fd1
|
7
|
+
data.tar.gz: f6c0b225e8ae206982eda661dd9730314a59964ec221051c99c5f6641e027622dc1added62b5393151f59d8b9da9175f28b10dd21c5f0aaec974f9d7a1096160
|
@@ -6,7 +6,7 @@ module StrawberryAPI
|
|
6
6
|
#
|
7
7
|
#
|
8
8
|
# @return [Array<StrawberryAPI::Library>] A list of libraries
|
9
|
-
#
|
9
|
+
#
|
10
10
|
def libraries
|
11
11
|
get("/library_ingests").parse['array']&.map do |library|
|
12
12
|
Library.new(library)
|
@@ -18,7 +18,7 @@ module StrawberryAPI
|
|
18
18
|
# @param [Integer] id Id of the library to retrieve
|
19
19
|
#
|
20
20
|
# @return [StrawberryAPI::Library] The fetched library
|
21
|
-
#
|
21
|
+
#
|
22
22
|
def library(id: nil, project_id: nil)
|
23
23
|
libraries.find do |library|
|
24
24
|
library.id == id.to_i || library.project_id == project_id.to_i
|
@@ -34,7 +34,7 @@ module StrawberryAPI
|
|
34
34
|
# @param [<type>] options {mxf_handling: false} Hash of options
|
35
35
|
#
|
36
36
|
# @return [StrawberryAPI::Library] The created library
|
37
|
-
#
|
37
|
+
#
|
38
38
|
def create_library(project_id:, ingest_storage: 'media_1', ingest_path:, external: false, options: {mxf_handling: false})
|
39
39
|
update_project(id: project_id, options: {is_library_project: true, encoding_priority: 'high'})
|
40
40
|
|
@@ -45,8 +45,8 @@ module StrawberryAPI
|
|
45
45
|
external: external,
|
46
46
|
options: options
|
47
47
|
}.to_json
|
48
|
-
|
49
|
-
data = post("/library_ingests", body: body).parse['
|
48
|
+
|
49
|
+
data = post("/library_ingests", body: body).parse['job']
|
50
50
|
data.nil? ? nil : Library.new(data)
|
51
51
|
end
|
52
52
|
|
@@ -55,7 +55,7 @@ module StrawberryAPI
|
|
55
55
|
# @param [Integer] id Id of the library to delete
|
56
56
|
#
|
57
57
|
# @return [Boolean] Success
|
58
|
-
#
|
58
|
+
#
|
59
59
|
def delete_library(id:)
|
60
60
|
delete("/library_ingests/#{id}").success?
|
61
61
|
end
|