lib/m3u8.rb in m3u8-0.5.0 vs lib/m3u8.rb in m3u8-0.5.1
- old
+ new
@@ -1,17 +1,19 @@
require 'stringio'
require 'm3u8/version'
require 'm3u8/playlist'
require 'm3u8/playlist_item'
require 'm3u8/segment_item'
+require 'm3u8/discontinuity_item'
+require 'm3u8/key_item'
require 'm3u8/media_item'
require 'm3u8/session_data_item'
require 'm3u8/reader'
require 'm3u8/writer'
require 'm3u8/error'
+# M3u8 provides parsing, generation, and validation of m3u8 playlists
module M3u8
-
def parse_attributes(line)
array = line.scan(/([A-z-]+)\s*=\s*("[^"]*"|[^,]*)/)
Hash[array.map { |key, value| [key, value.gsub('"', '')] }]
end
end