cineworld_uk 4.1.0-aarch64-linux-gnu → 4.2.0-aarch64-linux-gnu
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/CHANGELOG.md +18 -0
- data/README.md +23 -1
- data/Rakefile +3 -24
- data/cineworld_uk.gemspec +2 -2
- data/lib/cineworld_uk/internal/api_response.rb +7 -30
- data/lib/cineworld_uk/internal/guest_token.rb +9 -52
- data/lib/cineworld_uk/internal/parser/api/film.rb +6 -0
- data/lib/cineworld_uk/internal/parser/api/performance.rb +5 -0
- data/lib/cineworld_uk/internal/title_sanitizer.rb +2 -10
- data/lib/cineworld_uk/performance.rb +4 -1
- data/lib/cineworld_uk/version.rb +2 -2
- data/lib/cineworld_uk.rb +2 -1
- data/test/fixtures/api/showtimes-014.json +67 -0
- data/test/fixtures/api/sites.json +52 -0
- data/test/lib/cineworld_uk/cinema_test.rb +63 -223
- data/test/lib/cineworld_uk/internal/api_response_test.rb +27 -182
- data/test/lib/cineworld_uk/internal/fixture_shape_test.rb +14 -0
- data/test/lib/cineworld_uk/internal/guest_token_test.rb +87 -0
- data/test/lib/cineworld_uk/internal/parser/api/cinema_address_test.rb +44 -85
- data/test/lib/cineworld_uk/internal/parser/api/film_test.rb +53 -131
- data/test/lib/cineworld_uk/internal/parser/api/performance_test.rb +27 -45
- data/test/lib/cineworld_uk/internal/title_sanitizer_test.rb +75 -126
- data/test/lib/cineworld_uk/performance_test.rb +153 -180
- data/test/lib/cineworld_uk/version_test.rb +3 -3
- data/test/live/api_shape_test.rb +22 -0
- data/test/live/integration_test.rb +13 -43
- data/test/live/live_helper.rb +11 -0
- data/test/package_test.rb +14 -7
- data/test/support/api_shapes.rb +48 -0
- data/test/support/vista_fixtures.rb +58 -0
- data/test/test_helper.rb +3 -0
- metadata +33 -28
- data/tasks/package.rake +0 -84
- data/test/fixtures/api/cinema-list.json +0 -1
- data/test/fixtures/api/dates-14.json +0 -1
- data/test/fixtures/api/performances-tomorrow-14.json +0 -1
- data/test/fixtures/api/vista-showtimes-brighton.json +0 -1
- data/test/support/fixture_reader.rb +0 -32
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a53e950d494fc1001a5468c753534f9cc5668358049ac76e11f3e99fc75994a9
|
|
4
|
+
data.tar.gz: 3edce17e65610aa1aeceb35e9705a3679239a350d09d85f545033d8d4d59bf5c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 11dc64e0eebf618fcc5e3cf5a7c6e6f302f5705cba98d73b6f040d450b1957d6c01dab6ffe85c1d7c3cb25b51f537654f4af5b505229b3c57e424a0f93bcd991
|
|
7
|
+
data.tar.gz: ce879b7ffd4b058ef2a3a0568aefa8e5b6c0ae6b1c87e5727fd852567d1aae7e5981f3debf3d6d8cf25d739ff81d0693342fa54d6ee084797b2aca7d7d6f0552
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
4
|
|
|
5
|
+
## 4.2.0 - 2026-10-22
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- `Performance#language` from Vista language attributes such as `Tamil`, `Performance#subtitled?`, and `Performance#festival`, a `Cinebase::Festival` with `name` and `year`.
|
|
9
|
+
- Live API shape tests that check real responses without storing them.
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- Require cinebase 5.2. The Vista client, guest token retrieval and platform packaging task now come from `cinebase/vista`; behaviour, errors and pinned curl-impersonate digests are unchanged.
|
|
13
|
+
- `CineworldUk::AuthenticationError` is now `Cinebase::Vista::AuthenticationError`, so existing `rescue` clauses keep working.
|
|
14
|
+
- Film titles also use cinebase's common rules: dub and subtitle versions, more language versions, anniversaries, Q&A add-ons and festival prefixes are removed.
|
|
15
|
+
- Tests use plain `Minitest::Test` classes, with hand-written fixtures in place of recorded API responses.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- `Sing-Along` inside a real title, such as `Bebefinn Sing-Along Movie`, is no longer removed.
|
|
19
|
+
|
|
20
|
+
### Removed
|
|
21
|
+
- The `fixtures` rake task, which saved API responses into the repository.
|
|
22
|
+
|
|
5
23
|
## 4.1.0 - 2026-10-15
|
|
6
24
|
|
|
7
25
|
### Added
|
data/README.md
CHANGED
|
@@ -177,6 +177,15 @@ performance.dimension
|
|
|
177
177
|
performance.variant
|
|
178
178
|
#=> ['audio_described']
|
|
179
179
|
|
|
180
|
+
performance.language
|
|
181
|
+
#=> 'Tamil' # audio language, nil when the cinema does not tag one
|
|
182
|
+
|
|
183
|
+
performance.subtitled?
|
|
184
|
+
#=> true
|
|
185
|
+
|
|
186
|
+
performance.festival
|
|
187
|
+
#=> #<data Cinebase::Festival name="Cine-Excess", year=2026> # nil outside festivals
|
|
188
|
+
|
|
180
189
|
performance.starting_at
|
|
181
190
|
#=> 2026-10-14 14:40:00 UTC
|
|
182
191
|
|
|
@@ -193,6 +202,19 @@ performance.cinema_id
|
|
|
193
202
|
#=> 14
|
|
194
203
|
```
|
|
195
204
|
|
|
205
|
+
## Tests
|
|
206
|
+
|
|
207
|
+
```sh
|
|
208
|
+
bundle exec rake # unit tests against fixtures
|
|
209
|
+
bundle exec rake live # live API, needs curl-impersonate or CINEWORLD_TOKEN
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
Fixtures in `test/fixtures/api` are hand-written: invented films and
|
|
213
|
+
addresses in the shape of Vista responses, never recorded API output.
|
|
214
|
+
`test/support/api_shapes.rb` describes the fields the gem reads. The unit suite
|
|
215
|
+
checks the fixtures against it and the live suite checks real responses, held
|
|
216
|
+
only in memory. When the API changes, update the shape first, then the fixtures.
|
|
217
|
+
|
|
196
218
|
## Building release packages
|
|
197
219
|
|
|
198
220
|
```sh
|
|
@@ -204,7 +226,7 @@ To build and check just one platform on a matching host:
|
|
|
204
226
|
|
|
205
227
|
```sh
|
|
206
228
|
bundle exec rake 'package:native[x86_64-linux-gnu]'
|
|
207
|
-
CINEWORLD_PACKAGE=pkg/cineworld_uk-4.
|
|
229
|
+
CINEWORLD_PACKAGE=pkg/cineworld_uk-4.2.0-x86_64-linux-gnu.gem bundle exec ruby test/package_test.rb
|
|
208
230
|
```
|
|
209
231
|
|
|
210
232
|
Native packaging downloads pinned upstream archives at **build time**, verifies
|
data/Rakefile
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
require "bundler/gem_tasks"
|
|
3
3
|
|
|
4
4
|
require 'rake/testtask'
|
|
5
|
-
|
|
5
|
+
require 'cinebase/vista/package_task'
|
|
6
|
+
|
|
7
|
+
Cinebase::Vista::PackageTask.new('cineworld_uk.gemspec', root: __dir__)
|
|
6
8
|
|
|
7
9
|
Rake::TestTask.new do |t|
|
|
8
10
|
t.libs << 'lib/cineworld_uk'
|
|
@@ -33,27 +35,4 @@ task :console do
|
|
|
33
35
|
IRB.start
|
|
34
36
|
end
|
|
35
37
|
|
|
36
|
-
desc 'Recreate test fixtures'
|
|
37
|
-
task :fixtures do
|
|
38
|
-
require 'cineworld_uk'
|
|
39
|
-
CineworldUk.token = ENV.fetch("CINEWORLD_TOKEN")
|
|
40
|
-
|
|
41
|
-
def js_fixture(name)
|
|
42
|
-
File.expand_path("../test/fixtures/#{name}.json", __FILE__)
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
api = CineworldUk::Internal::ApiResponse.new
|
|
46
|
-
|
|
47
|
-
File.open(js_fixture('api/cinema-list'), 'w') do |file|
|
|
48
|
-
puts '* API Cinema List'
|
|
49
|
-
file.write api.cinema_list
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
File.open(js_fixture('api/performances-tomorrow-14'), 'w') do |file|
|
|
53
|
-
puts '* API Performances in Brighton Tomorrow'
|
|
54
|
-
file.write api.performances(14, Date.today + 1)
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
end
|
|
58
|
-
|
|
59
38
|
task :default => :test
|
data/cineworld_uk.gemspec
CHANGED
|
@@ -17,6 +17,7 @@ Gem::Specification.new do |spec|
|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
18
18
|
spec.require_paths = ['lib']
|
|
19
19
|
|
|
20
|
+
spec.add_development_dependency 'base64'
|
|
20
21
|
spec.add_development_dependency 'bundler', '>= 2.0'
|
|
21
22
|
spec.add_development_dependency 'minitest-mock'
|
|
22
23
|
spec.add_development_dependency 'minitest-reporters'
|
|
@@ -24,7 +25,6 @@ Gem::Specification.new do |spec|
|
|
|
24
25
|
spec.add_development_dependency 'simplecov', '< 1'
|
|
25
26
|
spec.add_development_dependency 'webmock'
|
|
26
27
|
|
|
27
|
-
spec.add_runtime_dependency '
|
|
28
|
-
spec.add_runtime_dependency 'cinebase', '~> 5.0'
|
|
28
|
+
spec.add_runtime_dependency 'cinebase', '~> 5.2'
|
|
29
29
|
spec.add_runtime_dependency 'nokogiri', '>= 1.11'
|
|
30
30
|
end
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require "net/http"
|
|
4
3
|
require "json"
|
|
5
4
|
require "date"
|
|
6
5
|
require "time"
|
|
@@ -17,6 +16,7 @@ module CineworldUk
|
|
|
17
16
|
"Movies for Juniors" => "junior",
|
|
18
17
|
"Unlimited Screening" => "unlimited-screening", "Q&A" => "qa"
|
|
19
18
|
}.freeze
|
|
19
|
+
LANGUAGES = Cinebase::TitleSanitizer::LANGUAGES
|
|
20
20
|
|
|
21
21
|
def cinema_list
|
|
22
22
|
cinemas = fetch("sites").fetch("sites").map do |site|
|
|
@@ -53,6 +53,9 @@ module CineworldUk
|
|
|
53
53
|
ATTRIBUTES[attribute.dig("name", "text")]
|
|
54
54
|
end
|
|
55
55
|
attrs << "3d" if showtime["requires3dGlasses"]
|
|
56
|
+
language = showtime.fetch("attributeIds", []).filter_map do |id|
|
|
57
|
+
attributes.fetch(id).dig("shortName", "text")
|
|
58
|
+
end.find { |name| LANGUAGES.include?(name) }
|
|
56
59
|
# Formats belong to a session, not to the film as a whole.
|
|
57
60
|
id = showtime.fetch("id")
|
|
58
61
|
normalized_films << {
|
|
@@ -62,7 +65,7 @@ module CineworldUk
|
|
|
62
65
|
}
|
|
63
66
|
starts_at = showtime.fetch("schedule").fetch("startsAt")
|
|
64
67
|
{
|
|
65
|
-
"filmId" => id, "attributeIds" => attrs,
|
|
68
|
+
"filmId" => id, "attributeIds" => attrs, "language" => language,
|
|
66
69
|
"eventDateTime" => Time.iso8601(starts_at).utc.iso8601,
|
|
67
70
|
"bookingLink" =>
|
|
68
71
|
"https://web.cineworld.co.uk/order/showtimes/#{id}/seats"
|
|
@@ -82,34 +85,8 @@ module CineworldUk
|
|
|
82
85
|
private
|
|
83
86
|
|
|
84
87
|
def fetch(path, query = {})
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
raise AuthenticationError,
|
|
88
|
-
"Set CineworldUk.token to a current guest JWT " \
|
|
89
|
-
"before fetching data"
|
|
90
|
-
end
|
|
91
|
-
uri = URI(BASE_URL + path)
|
|
92
|
-
uri.query = URI.encode_www_form(query) unless query.empty?
|
|
93
|
-
request = Net::HTTP::Get.new(uri)
|
|
94
|
-
request["Authorization"] = "Bearer #{token}"
|
|
95
|
-
request["Connect-Region-Code"] = "GB"
|
|
96
|
-
request["Accept"] = "application/json"
|
|
97
|
-
response = Net::HTTP.start(
|
|
98
|
-
uri.host, uri.port, use_ssl: true, open_timeout: 10, read_timeout: 30
|
|
99
|
-
) do |http|
|
|
100
|
-
http.request(request)
|
|
101
|
-
end
|
|
102
|
-
case response
|
|
103
|
-
when Net::HTTPSuccess
|
|
104
|
-
JSON.parse(response.body)
|
|
105
|
-
when Net::HTTPUnauthorized
|
|
106
|
-
raise AuthenticationError,
|
|
107
|
-
"Vista rejected the guest token; " \
|
|
108
|
-
"supply a fresh token with CineworldUk.token="
|
|
109
|
-
else
|
|
110
|
-
# Omit response bodies and never redirect credentials to another host.
|
|
111
|
-
raise "Vista HTTP error #{response.code}"
|
|
112
|
-
end
|
|
88
|
+
Cinebase::Vista::Client.new(base_url: BASE_URL, region_code: "GB",
|
|
89
|
+
token: CineworldUk.token).get(path, query)
|
|
113
90
|
end
|
|
114
91
|
end
|
|
115
92
|
end
|
|
@@ -1,72 +1,29 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require "base64"
|
|
4
3
|
require "json"
|
|
5
4
|
require "nokogiri"
|
|
6
|
-
require "open3"
|
|
7
5
|
|
|
8
6
|
module CineworldUk
|
|
9
7
|
module Internal
|
|
10
|
-
#
|
|
11
|
-
class GuestToken
|
|
12
|
-
|
|
13
|
-
@curl = curl || default_curl
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
def fetch
|
|
17
|
-
token = extract_token(request_page)
|
|
18
|
-
validate_expiry!(token)
|
|
19
|
-
token
|
|
20
|
-
rescue JSON::ParserError, ArgumentError, IndexError, TypeError, NoMethodError
|
|
21
|
-
raise AuthenticationError, "Guest token page data is missing or invalid", cause: nil
|
|
22
|
-
end
|
|
8
|
+
# Reads the public guest token from the ticketing site's page data
|
|
9
|
+
class GuestToken < Cinebase::Vista::GuestToken
|
|
10
|
+
PAGE_URL = "https://web.cineworld.co.uk/"
|
|
23
11
|
|
|
24
12
|
private
|
|
25
13
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
def curl_command
|
|
32
|
-
[@curl, "--disable", "--impersonate", "chrome150",
|
|
33
|
-
"--compressed", "--silent", "--show-error",
|
|
34
|
-
"--connect-timeout", "10", "--max-time", "30",
|
|
35
|
-
"--write-out", "\n%{http_code}", "https://web.cineworld.co.uk/"]
|
|
14
|
+
# The root page carries the token even when it displays a 404.
|
|
15
|
+
def accepted_statuses
|
|
16
|
+
%w[200 404]
|
|
36
17
|
end
|
|
37
18
|
|
|
38
|
-
def
|
|
39
|
-
|
|
40
|
-
unless result.success?
|
|
41
|
-
raise AuthenticationError,
|
|
42
|
-
"Guest token request failed (curl exit #{result.exitstatus})"
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
html, _, status = output.rpartition("\n")
|
|
46
|
-
unless %w[200 404].include?(status)
|
|
47
|
-
raise AuthenticationError, "Guest token page returned HTTP #{status}"
|
|
48
|
-
end
|
|
49
|
-
html
|
|
50
|
-
rescue Errno::ENOENT
|
|
51
|
-
raise AuthenticationError,
|
|
52
|
-
"Install curl-impersonate or pass its executable path with curl:"
|
|
19
|
+
def bundled_curl
|
|
20
|
+
File.expand_path("../../../vendor/curl-impersonate/bin/curl-impersonate", __dir__)
|
|
53
21
|
end
|
|
54
22
|
|
|
55
23
|
def extract_token(html)
|
|
56
24
|
script = Nokogiri::HTML(html).at_css("script#__NEXT_DATA__")
|
|
57
25
|
data = JSON.parse(script ? script.content : "")
|
|
58
|
-
|
|
59
|
-
unless token.is_a?(String) && !token.empty?
|
|
60
|
-
raise AuthenticationError, "Guest token is missing from the page"
|
|
61
|
-
end
|
|
62
|
-
token
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
def validate_expiry!(token)
|
|
66
|
-
claims = JSON.parse(Base64.urlsafe_decode64(token.split(".").fetch(1)))
|
|
67
|
-
if Integer(claims.fetch("exp")) <= Time.now.to_i
|
|
68
|
-
raise AuthenticationError, "Guest token supplied by the page has expired"
|
|
69
|
-
end
|
|
26
|
+
data.dig("props", "pageProps", "environment", "gasToken")
|
|
70
27
|
end
|
|
71
28
|
end
|
|
72
29
|
end
|
|
@@ -21,6 +21,12 @@ module CineworldUk
|
|
|
21
21
|
@data['attributeIds']&.include?('3d') ? '3d' : '2d'
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
+
# @param [Integer] year edition when the title gives none
|
|
25
|
+
# @return [Cinebase::Festival, nil]
|
|
26
|
+
def festival(year)
|
|
27
|
+
Cinebase::Festival.from_title(@data['name'] || '', year: year)
|
|
28
|
+
end
|
|
29
|
+
|
|
24
30
|
# Sanitized film name
|
|
25
31
|
# @return [String]
|
|
26
32
|
def name
|
|
@@ -18,13 +18,6 @@ module CineworldUk
|
|
|
18
18
|
# Strings and regex to be removed
|
|
19
19
|
def remove
|
|
20
20
|
[
|
|
21
|
-
/\s+[23]d/i, # dimension
|
|
22
|
-
/\(Hindi\)/i, # Indian Language
|
|
23
|
-
/\(Malayalam\)/i, # Indian Language
|
|
24
|
-
/\(Punjabi\)/i, # Indian Language
|
|
25
|
-
/\(Tamil\)/i, # Indian Language
|
|
26
|
-
/\(Cantonese\)/i, # Chinese
|
|
27
|
-
/\(Turkish\)/i, # Foreign Language
|
|
28
21
|
%r(-? \d{1,2}/\d{1,2}/\d{2,4}), # date
|
|
29
22
|
/\n/, # newlines
|
|
30
23
|
/\- Encore/, # encore
|
|
@@ -38,9 +31,8 @@ module CineworldUk
|
|
|
38
31
|
'SciScreen: ', # SciScreen
|
|
39
32
|
/\s(-\s)*(With)*\sLive Q And A/i, # Live Q&A
|
|
40
33
|
/(\s+\-\s+)?MOVIES FOR JUNIORS/i, # movies for juniors
|
|
41
|
-
/\bsing\-?a\-?long\b/i, # singalong
|
|
42
34
|
%r{\s20\d{2}[\/-]20\d{2} Season\b}
|
|
43
|
-
]
|
|
35
|
+
] + COMMON_REMOVE
|
|
44
36
|
end
|
|
45
37
|
|
|
46
38
|
# Regexes and their replacements
|
|
@@ -61,7 +53,7 @@ module CineworldUk
|
|
|
61
53
|
/ROH The Royal Ballet\s*[:-] (.*)/ => 'The Royal Ballet: ',
|
|
62
54
|
/Royal Ballet Live\s*[:-] (.*)/ => 'The Royal Ballet: ',
|
|
63
55
|
/San Francisco Ballets (.*)/ => 'San Francisco Ballet: '
|
|
64
|
-
}
|
|
56
|
+
}.merge(COMMON_REPLACE)
|
|
65
57
|
end
|
|
66
58
|
end
|
|
67
59
|
end
|
|
@@ -71,14 +71,17 @@ module CineworldUk
|
|
|
71
71
|
events.map do |event_data|
|
|
72
72
|
performance = Internal::Parser::Api::Performance.new(event_data)
|
|
73
73
|
film = films_hash[performance.film_id]
|
|
74
|
+
starting_at = utc(performance.starting_at)
|
|
74
75
|
|
|
75
76
|
{
|
|
76
77
|
cinema_name: response["body"]["cinemaName"] ||
|
|
77
78
|
CineworldUk::Cinema.new(cinema_id).name,
|
|
78
79
|
booking_url: performance.booking_url,
|
|
79
80
|
dimension: film.dimension,
|
|
81
|
+
festival: film.festival(starting_at.year),
|
|
80
82
|
film_name: film.name,
|
|
81
|
-
|
|
83
|
+
language: performance.language,
|
|
84
|
+
starting_at: starting_at,
|
|
82
85
|
variant: (performance.variant + film.variant).sort
|
|
83
86
|
}
|
|
84
87
|
end
|
data/lib/cineworld_uk/version.rb
CHANGED
data/lib/cineworld_uk.rb
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
require 'json'
|
|
2
2
|
|
|
3
3
|
require 'cinebase'
|
|
4
|
+
require 'cinebase/vista'
|
|
4
5
|
|
|
5
6
|
require_relative './cineworld_uk/version'
|
|
6
7
|
|
|
@@ -17,7 +18,7 @@ require_relative './cineworld_uk/performance'
|
|
|
17
18
|
|
|
18
19
|
# cineworld_uk gem
|
|
19
20
|
module CineworldUk
|
|
20
|
-
|
|
21
|
+
AuthenticationError = Cinebase::Vista::AuthenticationError
|
|
21
22
|
|
|
22
23
|
# A raw guest JWT, without the "Bearer " prefix. Never persisted by the gem.
|
|
23
24
|
class << self
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"businessDate": "2026-10-24",
|
|
3
|
+
"showtimes": [
|
|
4
|
+
{
|
|
5
|
+
"id": "014-1001",
|
|
6
|
+
"filmId": "FILM-1",
|
|
7
|
+
"schedule": { "startsAt": "2026-10-24T09:00:00+01:00" },
|
|
8
|
+
"attributeIds": ["A-2D", "A-AD"],
|
|
9
|
+
"requires3dGlasses": false
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "014-1002",
|
|
13
|
+
"filmId": "FILM-1",
|
|
14
|
+
"schedule": { "startsAt": "2026-10-24T14:30:00+01:00" },
|
|
15
|
+
"attributeIds": ["A-IMAX"],
|
|
16
|
+
"requires3dGlasses": true
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "014-1003",
|
|
20
|
+
"filmId": "FILM-2",
|
|
21
|
+
"schedule": { "startsAt": "2026-10-24T18:00:00+01:00" },
|
|
22
|
+
"attributeIds": ["A-TAMIL", "A-ST"],
|
|
23
|
+
"requires3dGlasses": false
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": "014-1004",
|
|
27
|
+
"filmId": "FILM-3",
|
|
28
|
+
"schedule": { "startsAt": "2026-10-24T10:00:00+01:00" },
|
|
29
|
+
"attributeIds": ["A-M4J"],
|
|
30
|
+
"requires3dGlasses": false
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "014-1005",
|
|
34
|
+
"filmId": "FILM-4",
|
|
35
|
+
"schedule": { "startsAt": "2026-10-24T20:15:00+01:00" },
|
|
36
|
+
"attributeIds": ["A-AC"],
|
|
37
|
+
"requires3dGlasses": false
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "014-1006",
|
|
41
|
+
"filmId": "FILM-1",
|
|
42
|
+
"schedule": { "startsAt": "2026-10-25T00:15:00+01:00" },
|
|
43
|
+
"attributeIds": [],
|
|
44
|
+
"requires3dGlasses": false
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"relatedData": {
|
|
48
|
+
"films": [
|
|
49
|
+
{ "id": "FILM-1", "title": { "text": "The Example Film" } },
|
|
50
|
+
{ "id": "FILM-2", "title": { "text": "Imaginary Picture (Tamil)" } },
|
|
51
|
+
{ "id": "FILM-3", "title": { "text": "Pretend Pups - Movies For Juniors" } },
|
|
52
|
+
{ "id": "FILM-4", "title": { "text": "Cine-Excess 2026: Scum Of The Earth" } }
|
|
53
|
+
],
|
|
54
|
+
"attributes": [
|
|
55
|
+
{ "id": "A-2D", "shortName": { "text": "2D" }, "name": { "text": "2D Film" } },
|
|
56
|
+
{ "id": "A-AD", "shortName": { "text": "AD" }, "name": { "text": "Audio Described" } },
|
|
57
|
+
{ "id": "A-IMAX", "shortName": { "text": "IMAX" }, "name": { "text": "IMAX Film" } },
|
|
58
|
+
{ "id": "A-TAMIL", "shortName": { "text": "Tamil" }, "name": { "text": "Tamil" } },
|
|
59
|
+
{ "id": "A-ST", "shortName": { "text": "ST" }, "name": { "text": "Subtitled" } },
|
|
60
|
+
{ "id": "A-M4J", "shortName": { "text": "M4J" }, "name": { "text": "Movies for Juniors" } },
|
|
61
|
+
{ "id": "A-AC", "shortName": { "text": "AC" }, "name": { "text": "Event Cinema" } }
|
|
62
|
+
],
|
|
63
|
+
"sites": [
|
|
64
|
+
{ "id": "014", "name": { "text": "Brighton" } }
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sites": [
|
|
3
|
+
{
|
|
4
|
+
"id": "014",
|
|
5
|
+
"name": { "text": "Brighton" },
|
|
6
|
+
"contactDetails": {
|
|
7
|
+
"addressV2": {
|
|
8
|
+
"line1": { "text": "1 Example Marina" },
|
|
9
|
+
"line2": { "text": "Brighton" },
|
|
10
|
+
"line3": { "text": "East Sussex" },
|
|
11
|
+
"line4": { "text": "BN2 0ZZ" }
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"id": "088",
|
|
17
|
+
"name": { "text": "Glasgow Silverburn" },
|
|
18
|
+
"contactDetails": {
|
|
19
|
+
"addressV2": {
|
|
20
|
+
"line1": { "text": "2 Example Centre" },
|
|
21
|
+
"line2": { "text": "Glasgow" },
|
|
22
|
+
"line3": { "text": "Lanarkshire" },
|
|
23
|
+
"line4": { "text": "G53 0ZZ" }
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "103",
|
|
29
|
+
"name": { "text": "Leicester Square" },
|
|
30
|
+
"contactDetails": {
|
|
31
|
+
"addressV2": {
|
|
32
|
+
"line1": { "text": "3 Example Square" },
|
|
33
|
+
"line2": { "text": "London" },
|
|
34
|
+
"line3": null,
|
|
35
|
+
"line4": { "text": "WC2H 0ZZ" }
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "999",
|
|
41
|
+
"name": { "text": "Example - Riverside" },
|
|
42
|
+
"contactDetails": {
|
|
43
|
+
"addressV2": {
|
|
44
|
+
"line1": { "text": "4 Example Quay" },
|
|
45
|
+
"line2": { "text": "Exampleton" },
|
|
46
|
+
"line3": null,
|
|
47
|
+
"line4": { "text": "EX1 0ZZ" }
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|