diff --git a/src/main/java/com/iheartradio/m3u8/MasterPlaylistTagWriter.java b/src/main/java/com/iheartradio/m3u8/MasterPlaylistTagWriter.java index 5720213..a03a951 100644 --- a/src/main/java/com/iheartradio/m3u8/MasterPlaylistTagWriter.java +++ b/src/main/java/com/iheartradio/m3u8/MasterPlaylistTagWriter.java @@ -9,6 +9,7 @@ import com.iheartradio.m3u8.data.IStreamInfo; import com.iheartradio.m3u8.data.MasterPlaylist; import com.iheartradio.m3u8.data.MediaData; +import com.iheartradio.m3u8.data.MediaType; import com.iheartradio.m3u8.data.Playlist; import com.iheartradio.m3u8.data.PlaylistData; import com.iheartradio.m3u8.data.StreamInfo; @@ -133,7 +134,7 @@ public String write(MediaData mediaData) throws ParseException { HANDLERS.put(Constants.FORCED, new AttributeWriter() { @Override public boolean containsAttribute(MediaData mediaData) { - return true; + return mediaData.getType() == MediaType.SUBTITLES; } @Override