Skip to content

Conversation

timekone
Copy link

@timekone timekone commented Aug 25, 2021

Hi!

I would like to propose skipping empty lines when parsing a document.

Check out this example from the Wikipedia page about M3U:

#EXTM3U
 
#EXTINF:123, Sample artist - Sample title
C:\Documents and Settings\I\My Music\Sample.mp3
 
#EXTINF:321,Example Artist - Example title
C:\Documents and Settings\I\My Music\Greatest Hits\Example.ogg

Right now, after parsing, the first entry will have the following values:

title=""
link="#EXTINF:123, Sample artist - Sample title"

Second entry:

title=""
link=""

Third entry:

title="Example Artist - Example title"
link="C:\Documents and Settings\I\My Music\Greatest Hits\Example.ogg"

This pull request solves the issue.

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.

1 participant