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

Export scrobble history to JSON data store #4

Open
jwflory opened this issue Aug 31, 2018 · 0 comments
Open

Export scrobble history to JSON data store #4

jwflory opened this issue Aug 31, 2018 · 0 comments
Assignees
Labels
enhancement New improvement or request exporter Related to exporter component priority:high High priority: needs immediate attention
Milestone

Comments

@jwflory
Copy link
Owner

jwflory commented Aug 31, 2018

Summary

Support JSON format for exporting history from a platform

Background

Currently, last2libre writes data out to a text file separated by tabs and new lines. It would be cleaner to offer support for JSON export. This puts the data into a more easily programmable format for other developers to use the data for their wishes.

Additionally, the importer module can be updated to read in the JSON instead of doing that step manually like it is now.

Details

Write all entries to a dict where each key represents a unique listen. All the values in the dict represent different metadata pieces. At the end of the import process, write the dict out as JSON instead of a text file.

Ideally, if all text file functionality can be deprecated, I consider this a major win.

Outcome

Support data export format to improve ease of use for external developers / users

@jwflory jwflory self-assigned this Aug 31, 2018
@jwflory jwflory added enhancement New improvement or request priority:high High priority: needs immediate attention exporter Related to exporter component labels Aug 31, 2018
@jwflory jwflory added this to To do in last2libre - Development via automation Aug 31, 2018
@jwflory jwflory added this to the v1.0.0 milestone Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New improvement or request exporter Related to exporter component priority:high High priority: needs immediate attention
Projects
Development

No branches or pull requests

1 participant