Skip to content

Commit

Permalink
fix: updated Spotify extended streaming history schema to match new f…
Browse files Browse the repository at this point in the history
…ormat

Spotify changed their data export format removing and renaming certain
fields:
- Removed `username` field
- Removed `user_agent_decrypted` field
- Renamed `ip_addr_decrypted` to `ip_addr`
  • Loading branch information
mroetsc committed Nov 23, 2024
1 parent 10c73de commit 3da60df
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/server/src/tools/importers/full_privacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,10 @@ import {
const fullPrivacyFileSchema = z.array(
z.object({
ts: z.string(),
username: z.string().nullable(),
platform: z.string().nullable(),
ms_played: z.number(),
conn_country: z.string().nullable(),
ip_addr_decrypted: z.string().nullable(),
user_agent_decrypted: z.string().nullable(),
ip_addr: z.string().nullable(),
master_metadata_track_name: z.string().nullable(),
master_metadata_album_artist_name: z.string().nullable(),
master_metadata_album_album_name: z.string().nullable(),
Expand Down

0 comments on commit 3da60df

Please sign in to comment.