Skip to content
This repository was archived by the owner on Jan 5, 2021. It is now read-only.
This repository was archived by the owner on Jan 5, 2021. It is now read-only.

AbstractPlaylist toString accidently append new line for inline uri parameter #14

Description

@ishayhil

Reproduce:

String playlistStr = "#EXTM3U" +
                  "#EXT-X-VERSION:3" +
                  "#EXT-X-MEDIA:LANGUAGE=\"eng\",AUTOSELECT=YES,FORCED=NO,TYPE=SUBTITLES,URI=\"https://foo.bar.com\",GROUP-ID=\"subtitles\",DEFAULT=YES,NAME=\"caption_1\"";

String resultPlaylist = PlaylistFactory.parsePlaylist(PlaylistVersion.DEFAULT, playlistStr).toString(); // the uri will be in new line instead of uri param.

You need to differentiate between inline uri and newline uri when parsing the playlist.
Will open you a PR with a possible fix

Ishay.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions