Skip to content

Comments

Add plain-txt output format and change newline character#45

Open
bfrolikov wants to merge 4 commits intocaseychu:masterfrom
bfrolikov:plain-txt-output-format
Open

Add plain-txt output format and change newline character#45
bfrolikov wants to merge 4 commits intocaseychu:masterfrom
bfrolikov:plain-txt-output-format

Conversation

@bfrolikov
Copy link

For ease of import into other streaming services, added a new output format called plain-txt that only outputs song titles and artist names, like this: <title> - <artist name>.

Also, here's an excerpt from the Python documentation on the open method:

When writing output to the stream, if newline is None, any '\n' characters written are translated to the system default line separator, os.linesep. If newline is '' or '\n', no translation takes place. If newline is any of the other legal values, any '\n' characters written are translated to the given string.

So, when writing to the file, \n should probably be used instead of \r\n for cross-platform support.

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