lib/m3u8/writer.rb in m3u8-0.3.2 vs lib/m3u8/writer.rb in m3u8-0.4.0
- old
+ new
@@ -26,9 +26,10 @@
return if playlist.valid?
fail PlaylistTypeError, 'Playlist is invalid.'
end
def write_header(playlist)
+ io.puts "#EXT-X-PLAYLIST-TYPE:#{playlist.type}" unless playlist.type.nil?
io.puts "#EXT-X-VERSION:#{playlist.version}"
io.puts "#EXT-X-MEDIA-SEQUENCE:#{playlist.sequence}"
io.puts "#EXT-X-ALLOW-CACHE:#{cache(playlist)}"
io.puts "#EXT-X-TARGETDURATION:#{playlist.target}"
end