m3uzi 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/m3uzi.rb +1 -1
  2. data/lib/m3uzi/version.rb +1 -1
  3. metadata +4 -4
@@ -78,10 +78,10 @@ class M3Uzi
78
78
  check_version_restrictions
79
79
  io_stream << "#EXTM3U\n"
80
80
  io_stream << "#EXT-X-VERSION:#{@version.to_i}\n" if @version > 1
81
- io_stream << "#EXT-X-MEDIA-SEQUENCE:#{@initial_media_sequence+@removed_file_count}\n" if @playlist_type == :live
82
81
  io_stream << "#EXT-X-PLAYLIST-TYPE:#{@playlist_type.to_s.upcase}\n" if [:event,:vod].include?(@playlist_type)
83
82
 
84
83
  if items(File).length > 0
84
+ io_stream << "#EXT-X-MEDIA-SEQUENCE:#{@initial_media_sequence+@removed_file_count}\n" if @playlist_type == :live
85
85
  max_duration = valid_items(File).map { |f| f.duration.to_f }.max || 10.0
86
86
  io_stream << "#EXT-X-TARGETDURATION:#{max_duration.ceil}\n"
87
87
  end
@@ -1,3 +1,3 @@
1
1
  class M3Uzi
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: m3uzi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 0
10
- version: 0.5.0
9
+ - 1
10
+ version: 0.5.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brandon Arbini
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-02-23 00:00:00 Z
19
+ date: 2012-04-12 00:00:00 Z
20
20
  dependencies: []
21
21
 
22
22
  description: Read and write M3U files with (relative) ease.