Skip to content
This repository has been archived by the owner on Jun 28, 2019. It is now read-only.

collection export doesn't correctly handle quotes in song titles #65

Closed
bgentry opened this issue Nov 17, 2015 · 3 comments
Closed

collection export doesn't correctly handle quotes in song titles #65

bgentry opened this issue Nov 17, 2015 · 3 comments

Comments

@bgentry
Copy link

bgentry commented Nov 17, 2015

This is the first 3 lines of my exported Rdio collection:

Name,Artist,Album,Track Number
""Is This My Fate," He Asked Them","Story Of The Year","In The Wake Of Determination","12"
""The Take Over, The Breaks Over"","Fall Out Boy","Infinity On High (Deluxe Edition)","2"

Unfortunately, this isn't valid CSV. You can surround comma-containing strings in double quotes as you've done here, but then you also need to escape double quotes with a "". So I think the correct output would be:

Name,Artist,Album,Track Number
"""Is This My Fate,"" He Asked Them","Story Of The Year","In The Wake Of Determination","12"
"""The Take Over, The Breaks Over""","Fall Out Boy","Infinity On High (Deluxe Edition)","2"

I've confirmed with Golang's CSV parser that this is indeed parseable and valid.

@matt-h matt-h closed this as completed in 9ab290b Nov 17, 2015
@bgentry
Copy link
Author

bgentry commented Nov 17, 2015

@matt-h awesome, thank you!

@gingold
Copy link

gingold commented Nov 18, 2015

I ended up with the following:

Name,Artist,Album,Track Number
"""Is That Really It?"","Disjecta","Clean Pit & Lid","9"

Seems to be missing the final quote in the first field.

matt-h added a commit that referenced this issue Nov 18, 2015
@matt-h
Copy link
Owner

matt-h commented Nov 18, 2015

Thanks for the feedback @gingold
This should be fixed now in v2.10.3

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

No branches or pull requests

3 participants