Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CRLF handling when reading master playlist #24

Merged
merged 2 commits into from
Apr 20, 2020

Conversation

noamtamim
Copy link
Contributor

Use M3U8LineReader when reading master playlist.

The existing logic breaks when \r is present in the playlist. There was special handling for the URI line, but in certain cases (example: audio stream with URI at the end) it broke other lines too.

M3U8LineReader is already used when reading media playlists and solves the issue in a clean way.

The existing logic breaks when `\r` is present in the playlist. There was special handling for the URI line, but in certain cases (example: audio stream with URI at the end) it broke other lines too.

M3U8LineReader is already used when reading media playlists and solves the issue in a clean way.
@noamtamim
Copy link
Contributor Author

@wolfcon in the source file I changed there were two comments in Chinese. I was wondering what they meant and used Google to translate them to English. The translation makes sense, so I modified the code.
If it bothers you that I changed from Chinese, I can revert this change. Or, if the translation is not 100% accurate, you can fix it 😀.

@noamtamim
Copy link
Contributor Author

Also removed a utility function not used anymore. I hope this is okay.

@noamtamim
Copy link
Contributor Author

One last thing: this change is done against master which contains the SPM refactor. If you think it will take time to release it, I can also prepare it to be released as 0.4.1.

Copy link
Member

@wolfcon wolfcon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change some translation later

@wolfcon
Copy link
Member

wolfcon commented Apr 20, 2020

Already release 0.4.1 (spm included)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants