ods_tmdb_GB 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/cinema_information.rb +15 -0
- data/lib/cinema_information/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDUyZWM3MTE4N2Y5YjBkNDUxM2MxZTdiOWYyMDJjYmFhNjQ4ZDg2Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGMwZDNkYTlmMzZhNWU2ZTFlNGVhMThkZWQ5NTVkMzMyYzhiOTBkYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTNkNjViNTdkNmE2N2FlM2IxMDIyOGYxMDU1NDdlMTFmYzNmN2Q5YWI3OWY0
|
10
|
+
YzVmNzQ4NDI0YTZmZDMyYzgxYmFiZTQ2M2ZjNGMxOWViMmJiNDMyOGNlYzE4
|
11
|
+
OTExNDI3NzJiZDNkNjFlMDg3ODEyYTg2ZjczYjJhM2FlMDZlYWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWRkM2IwYzg0NDQwOGZmZWFlNTE3ZGY1NWM1ZDkxZjRkNGY0YTIwMDEyZjMw
|
14
|
+
ZmZiOGFkOTVkMDE0N2FkZThmNGI0YWI0M2MwOGM1OTBlYmIwMmZkYTViM2I0
|
15
|
+
YWVjZDQ1NGIyOTNmOTk4MmFiMTU4ZDJjNGQ2ZjU5NzgzZjIyZjQ=
|
data/lib/cinema_information.rb
CHANGED
@@ -173,4 +173,19 @@ module CinemaInformation
|
|
173
173
|
prog
|
174
174
|
end
|
175
175
|
|
176
|
+
def self.get_info(path, key)
|
177
|
+
#Configure file path
|
178
|
+
CinemaInformation.configure_file_path(path)
|
179
|
+
#Configure api key
|
180
|
+
CinemaInformation.configure_api_key(key)
|
181
|
+
#Parse the whole ods file
|
182
|
+
@programme = CinemaInformation.parse_ods
|
183
|
+
#Get the movie list
|
184
|
+
movie_list = CinemaInformation.get_movie
|
185
|
+
#Get the movie information from the list
|
186
|
+
@movie_info = CinemaInformation.get_movie_info_from_list(movie_list)
|
187
|
+
#Assemble programme with movie information
|
188
|
+
@result = CinemaInformation.assemble_prog_with_info(@programme, @movie_info)
|
189
|
+
@result
|
190
|
+
end
|
176
191
|
end
|