enklawa 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmI4ZjY1YTU2MDYxOTM0ZWFiMTU0NjBmMWVkM2E2ZTZmMGE3YjIxOA==
4
+ OGNmODg4YTMyY2QxYWE5ZDcyMmZiNjU1MzBkM2ViOTVkYzQyMDczYg==
5
5
  data.tar.gz: !binary |-
6
- NzFkNDhkYmU4MTJmYzk0YjJkYWMwMmE1YmNhYjE3YWJiOGJkOWFhZQ==
6
+ ODA2ZTM0ZjljMzY3YTcwNWQyMGJhZWM2NjUxOTY1Yjc5YjhjZDFjYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OGQ1NDE1YTJhODc2OWI5NGJkYmYyYmZlZDk5OTYyZjVhMzg2ODg4MWY0YjVk
10
- Y2MwZWFlODQwYjQ2ZGRjNjVkMThiYzdmYWM3ZjczNjkwOWIzNmMyOWNjOTA2
11
- NzNiMjExY2E1MTAwZjBjZjE0YjVjZTQzZGFhNDEwYWYwODE3ODg=
9
+ MWI2MWYzZGQ2ZGNlZjg4NzViZTEyNjA0YjUyODBmMjAyYTkzM2ZkZTMwOTY5
10
+ YTIwMDNhZDI0NjI5YWMwYTYzOGI4MGY3ODg2NzkyNDQ4MDRkMTJmNWRhMjBl
11
+ YzA2ZjUzMThjNmM0MmY0Y2E1Y2JiNDUzY2U5NThhYjFlNmNiYzE=
12
12
  data.tar.gz: !binary |-
13
- NDI5YWU2ZDJmNDE3ZGJlNmU1MDRlODA0NTMzNTUwNDViYWEwN2MzMGUwOWRi
14
- MTFhMGQzY2U1NzJhMzUwZTdhNDJkYTRlMmJkODEwNDkxZGVkZmE5YWQ4YmYw
15
- NWNkYTIzYTAxZjgwMTEyMjgyODg2M2U2ZTBjMWY1NDcwNjQ1ZmQ=
13
+ Zjk2ZWZiMTU4MTU3N2ZhYzEyYzFlNjk4NWUzNTViYzI0ZjlmN2Q2MzdkZGYx
14
+ MjZlYzhkYTk0NzI5NjFmYzEwNzE0NDhlMzUwMzU2MDE1MDc1NTAyZmY5MDc4
15
+ MGUwMjAwODc2MDNhNjY4NmViMTNkYzEwYjNkNDgxY2I2ZjllMWE=
@@ -100,7 +100,7 @@ module Enklawa
100
100
  temp_output_file_name = "/tmp/episode_metadata_#{episode.id}.txt"
101
101
  `ffmpeg2theora #{episode.mp3} > #{temp_output_file_name} 2>&1` unless File.exists?(temp_output_file_name)
102
102
  if open(temp_output_file_name).read.match(/.+Duration:\s+(\d{2}):(\d{2}):(\d{2}).+/i)
103
- episode.duration = $3.to_i + ($2.to_i * 60) + ($3.to_i * 60 * 60)
103
+ episode.duration = ($3.to_i * 1000) + ($2.to_i * 60 * 1000) + ($1.to_i * 3600 * 1000)
104
104
  episode.check_if_image_exists_or_use_from_program(program)
105
105
  program << episode
106
106
  end
@@ -1,5 +1,5 @@
1
1
  module Enklawa
2
2
  module Api
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enklawa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arkadiusz Buras