Commit Graph

7 Commits

Author SHA1 Message Date
agres 10a490bf9c Logging refactor in auth 2025-03-23 23:27:28 +01:00
Dominik ff9d726b47 Feat/import gdrp data (#26)
* Some simple code for extracting data from the jsons

* Jupiter Notebook

* Mac specific gitignore

* Fixed finding paths to floders

* Delete src/gdpr_data directory

* Updated gitignore to include my testing file

* Added the standard saving path for the database in the database handler, this way multiple files dont have to be updated when moving database position

* Moved the API usage wrappers into an own file, added a function for getting multiple track_ids at once, this still needs to be tested more

* Further code for extracting data from the gdpr files

* Forgor

* Final&Tested version of get_multiple_tracks_information endpoint

* Further functionality: The code now extracts the id of each listened song and makes a api call to get info about these songs via the multiple tracks api. Furthermore we track the songs witch the call is made for already and skip these

* Added function to map catalouged ids into the play history

* Added args parser to runtime program, cleaned up some code

* Fixed a bug where the database would always try to create tables, eaven if it exists

* Added some small text for clean interface

* Some final fixes to actual code, fixed db bug, reversed the order of database entries

* Some documentation

* Added -export args to docker runtime

* fix
2025-03-23 18:48:57 +01:00
Chris Kiriakou 38e0c69bea Move .env file to config dir, change db path for improved project structure
* Change path of db and token to `data` which helps to sperate source
  code from data files like `tokens.json` & `spotify_scraped.db`
* Change path of `.env` `src/env/` to `config/` for the same reason as
  mentioned above
* Added the newly created files to `.gitigore` accordingly
2025-03-21 18:57:13 +01:00
agres 6b35a34826 refacor & simple logger 2025-03-19 19:38:22 +01:00
Dominik e574c6bc00 Feat/auth multiple tokens integration (#15)
* Implemented a multiple token read/write/refresh function for the authentificator

* Rework auth with simple authentificate
2025-03-19 17:44:17 +01:00
agres 12096b2ec0 Fixed doc 2025-03-19 01:07:42 +01:00
agres eb6a44a9b6 Implemented a token refresher/rotator and a token file so the user does not have to auth each time the code is ran 2025-03-18 21:43:40 +01:00