enklawa 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/enklawa/api/request.rb +4 -8
- data/lib/enklawa/api/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
|
+
MjRjYmQ1NDZmMDEzZjJiYmQwYTk3OTUyZjgwYTBjNGViZTFmZTEzYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWY3Y2FjOTE3ZmQxYTU4Yjc5NjYzZmQ0Y2YzMWM3MmYxMTJkYzA5YQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODUyYWE3OGQ0MjdjMzAxOGM2MDdlNWZhNDYyMTQ5ZjdmMjg0ODU4YjY4ZmZi
|
10
|
+
ZTIxNjZiZmJlOTA2ZjlhM2NlNGIzNTJjZGFlMTQwZWI3Zjc0NmYyZWExMDVi
|
11
|
+
NTkzZGJhN2E0MmQ2YjQyN2VjMTQ5NzBlMDhiZDAxMDlhYTYxMzY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDViYmE2MzNhZmQ5NzNmZDQ4MzcyMjg4OGFiNjhlNjIyMTgzMGY4YmRmY2Ri
|
14
|
+
YzJmOTc4OTU5Nzc0YTRjNGYzMzIzMDMzZGIwODE4YjNkMzViZTRkNmU3NjI2
|
15
|
+
ODJkZDZiNjgxOTkyNzM1MDZlYWVhYjA3ZWY2Yjc0M2UzYzkyY2E=
|
data/lib/enklawa/api/request.rb
CHANGED
@@ -113,7 +113,7 @@ module Enklawa
|
|
113
113
|
|
114
114
|
def get_duration(episode)
|
115
115
|
return @cache['durations'][episode.id] if @cache['durations'].key?(episode.id)
|
116
|
-
|
116
|
+
|
117
117
|
duration = nil
|
118
118
|
temp_output_file_name = "/tmp/episode_metadata.txt"
|
119
119
|
`ffmpeg2theora #{episode.mp3} > #{temp_output_file_name} 2>&1`
|
@@ -135,13 +135,9 @@ module Enklawa
|
|
135
135
|
episode.pub_date = entry.published
|
136
136
|
|
137
137
|
if episode.mp3
|
138
|
-
|
139
|
-
|
140
|
-
if
|
141
|
-
episode.duration =
|
142
|
-
episode.image = check_if_image_exists_or_use_from_program(program, episode)
|
143
|
-
program << episode
|
144
|
-
end
|
138
|
+
episode.duration = get_duration(episode)
|
139
|
+
episode.image = check_if_image_exists_or_use_from_program(program, episode)
|
140
|
+
program << episode if episode.duration
|
145
141
|
end
|
146
142
|
end
|
147
143
|
end
|
data/lib/enklawa/api/version.rb
CHANGED