lib/m3uzi/stream.rb in m3uzi-0.4.2 vs lib/m3uzi/stream.rb in m3uzi-0.4.3
- old
+ new
@@ -6,10 +6,10 @@
# Unsupported tags: EXT-X-MEDIA, EXT-X-I-FRAME-STREAM-INF
# Unsupported attributes of EXT-X-STREAM-INF: AUDIO, VIDEO
def attribute_string
s = []
- s << "PROGRAM-ID=#{program_id.to_i || 1}"
+ s << "PROGRAM-ID=#{(program_id || 1).to_i}"
s << "BANDWIDTH=#{bandwidth.to_i}"
s << "CODECS=\"#{codecs}\"" if codecs
s << "RESOLUTION=#{resolution}" if resolution
s.join(',')
end