Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1.15 KB

README.md

File metadata and controls

29 lines (23 loc) · 1.15 KB

rusty-endsong-parser

Better, more performant version of https://github.com/fsktom/endsong-parser-python written in Rust

Rust cheat sheet

Pages

Assumptions made in this program

  • all streams happened in one time zone and that timezone is your computer's local time zone
    • dealing with changing time zones is too much of a hassle
    • Spotify saves the timestamp of your stream as an UTC date that is then transformed to your local time zone
  • timestamps are unique
    • i.e. no two entries share the same timestamp (if they do, only the first one is taken and the other are discared)
      • this has happened a lot to my earlier entries
  • there are no two different artists with the same name
    • this is obviously not true, but the only way (that I can think of) to work around that is use the Spotify API
  • there are no two different albums from the same artist with the same name
    • impossible to check without Spotify API