-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
lp 16878282: Fix playlist import #2200
Conversation
uklotzde
commented
Jul 4, 2019
- Accept text files that start with UTF-8 BOM
- Fix parsing of lines, i.e. comments start with '#' vs. file path may contain '#'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to skip the utf8 bom?
Can skip in this case the other utf8 recognize call?
I have force-pushed the reformatted commits. |
There is a build issue:
|
Mm, we can be sure that the # is encoded in all cases. Why not use the trimmed line above and then check for a preceding #? |
I don't understand what you want to tell me. That's what I did before -> startsWith(). After your comments I reverted back to the previous version where all lines containing a '#' are ignored. |
Your original solution was already Ok. |
Ok, don't mind :) |
.. but building still fails. |
Thank you! LGTM |