alecigne / deezer-datasync Goto Github PK
View Code? Open in Web Editor NEWJava application that backups data from Deezer
Java application that backups data from Deezer
Comparing the SHA of the trees should be enough (I need to test this):
if (newTree.getSha().equals(baseTreeSha)) {
log.debug("The commit is empty. No changes to push.");
return; // Skip the commit creation and update
}
All creation times are UTC:
time_add
in albums ✅time_add
in artists ✅time_add
in the tracks of a playlist ✅...except in the info section of playlists;
creation_date
is a local time
time_add
is a local time (last time a song was added), despite being a UNIX timestamp
time_mod
is a local time (last time the playlist was modified, either by adding a song or by changing something like the description -- I don't really understand the behaviour)
When backuping playlist info, I should either reflect the fact that this is a local time or convert it to UTC using the zone in the configuration file. However, I have to be sure that the local time that Deezer uses is always the same for a given user (from the "preferences" in the user profile). If they take the local time of the place from which the playlists is created instead, I can't convert to UTC since I can't guess the zone.
Maybe I should also add time_add
and time_mod
in the backup.
At this time a list of playlist IDs has to be provided in the config file. It would be nice to also give the possibility to backup all playlists by using the IDs gathered from the "playlist info" data.
Just apply the groups
option (see docs).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.