mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-07 13:38:15 -08:00
transition time ranged queries to timeframe (#117)
This commit is contained in:
parent
ad3c51a70e
commit
d327729bff
26 changed files with 2032 additions and 335 deletions
977
engine/Vkhuk8cw/import_complete/Streaming_History_Audio_spotify_import_test.json
Executable file
977
engine/Vkhuk8cw/import_complete/Streaming_History_Audio_spotify_import_test.json
Executable file
|
|
@ -0,0 +1,977 @@
|
|||
[
|
||||
{
|
||||
"ts": "2025-04-28T21:04:35Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 1603,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "only my railgun",
|
||||
"master_metadata_album_artist_name": "fripSide",
|
||||
"master_metadata_album_album_name": "infinite synthesis",
|
||||
"spotify_track_uri": "spotify:track:3aJ2aJz5xL03hpaqdPS7Ah",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745874272,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-28T21:04:49Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 10953,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "LEVEL5-judgelight-",
|
||||
"master_metadata_album_artist_name": "fripSide",
|
||||
"master_metadata_album_album_name": "infinite synthesis",
|
||||
"spotify_track_uri": "spotify:track:0hjif67e3mBkrPIlRDXHLS",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745874274,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-28T21:16:38Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 93283,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Red Liberation",
|
||||
"master_metadata_album_artist_name": "fripSide",
|
||||
"master_metadata_album_album_name": "infinite Resonance 2",
|
||||
"spotify_track_uri": "spotify:track:2B8geqnq9YIym0ixYn83Pd",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "logout",
|
||||
"shuffle": false,
|
||||
"skipped": false,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745874288,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-28T22:29:29Z",
|
||||
"platform": "android",
|
||||
"ms_played": 9640,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "New Genesis",
|
||||
"master_metadata_album_artist_name": "Ado",
|
||||
"master_metadata_album_album_name": "UTA'S SONGS ONE PIECE FILM RED",
|
||||
"spotify_track_uri": "spotify:track:6A8NfypDHuwiLWbo4a1yca",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "logout",
|
||||
"shuffle": true,
|
||||
"skipped": false,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745878757,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T00:37:09Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 181028,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Clairvoyant",
|
||||
"master_metadata_album_artist_name": "The Story So Far",
|
||||
"master_metadata_album_album_name": "The Story So Far / Stick To Your Guns Split",
|
||||
"spotify_track_uri": "spotify:track:5fgnsSQYKIlEn2KTQcGjh2",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "playbtn",
|
||||
"reason_end": "trackdone",
|
||||
"shuffle": false,
|
||||
"skipped": false,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745886847,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T00:59:36Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 824,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Clairvoyant",
|
||||
"master_metadata_album_artist_name": "The Story So Far",
|
||||
"master_metadata_album_album_name": "The Story So Far / Stick To Your Guns Split",
|
||||
"spotify_track_uri": "spotify:track:5fgnsSQYKIlEn2KTQcGjh2",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "trackdone",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745887028,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T01:15:07Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 4443,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "比翼の羽根",
|
||||
"master_metadata_album_artist_name": "eufonius",
|
||||
"master_metadata_album_album_name": "比翼の羽根",
|
||||
"spotify_track_uri": "spotify:track:6FFshKmfm9h5MBpnsRO73c",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": true,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745888374,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T01:16:02Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 36093,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "ファジーネーブル",
|
||||
"master_metadata_album_artist_name": "Conton Candy",
|
||||
"master_metadata_album_album_name": "melt pop",
|
||||
"spotify_track_uri": "spotify:track:3FniX6mJvTQWruKp5PDexD",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745889306,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T01:25:35Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 54615,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Bad Spanish",
|
||||
"master_metadata_album_artist_name": "Nervous Dater",
|
||||
"master_metadata_album_album_name": "Don't Be a Stranger",
|
||||
"spotify_track_uri": "spotify:track:793ILNfrm9dQyp3k0P53HG",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745889361,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T01:28:08Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 153153,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Fight Song",
|
||||
"master_metadata_album_artist_name": "Rachel Platten",
|
||||
"master_metadata_album_album_name": "Wildfire",
|
||||
"spotify_track_uri": "spotify:track:37f4ITSlgPX81ad2EvmVQr",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745889934,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T01:29:19Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 70473,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Cake By The Ocean",
|
||||
"master_metadata_album_artist_name": "DNCE",
|
||||
"master_metadata_album_album_name": "DNCE",
|
||||
"spotify_track_uri": "spotify:track:76hfruVvmfQbw0eYn1nmeC",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745890087,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T01:31:08Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 108465,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "The Sweet Escape",
|
||||
"master_metadata_album_artist_name": "Gwen Stefani",
|
||||
"master_metadata_album_album_name": "The Sweet Escape",
|
||||
"spotify_track_uri": "spotify:track:66ZcOcouenzZEnzTJvoFmH",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745890158,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T01:33:19Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 130353,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "two",
|
||||
"master_metadata_album_artist_name": "bbno$",
|
||||
"master_metadata_album_album_name": "two",
|
||||
"spotify_track_uri": "spotify:track:6DRZmJa38MaMNthwG3fCBD",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745890267,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T01:37:48Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 35993,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "C’est La Vie (with bbno$ & Rich Brian)",
|
||||
"master_metadata_album_artist_name": "Yung Gravy",
|
||||
"master_metadata_album_album_name": "Marvelous",
|
||||
"spotify_track_uri": "spotify:track:3QqOcLtTU8zzlQRJCZzttP",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745890398,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T02:23:28Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 22337,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Metal",
|
||||
"master_metadata_album_artist_name": "The Beths",
|
||||
"master_metadata_album_album_name": "Metal",
|
||||
"spotify_track_uri": "spotify:track:6KF6TkyYpEWKg6BZ3OYJz7",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "logout",
|
||||
"shuffle": false,
|
||||
"skipped": false,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745890667,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T17:14:32Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 21414,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "SHINUNA!",
|
||||
"master_metadata_album_artist_name": "Kocchi no Kento",
|
||||
"master_metadata_album_album_name": "SHINUNA!",
|
||||
"spotify_track_uri": "spotify:track:5QSo4Jbok8O9EgeDkumK9q",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "logout",
|
||||
"shuffle": false,
|
||||
"skipped": false,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745905178,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T17:36:54Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 53063,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "I'm getting on the bus to the other world, see ya!",
|
||||
"master_metadata_album_artist_name": "TUYU",
|
||||
"master_metadata_album_album_name": "It's Raining After All",
|
||||
"spotify_track_uri": "spotify:track:3rCJptQKkXrTx6qUXqz7dD",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745947869,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T17:37:41Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 28193,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Harukaze",
|
||||
"master_metadata_album_artist_name": "Matsuri",
|
||||
"master_metadata_album_album_name": "Harukaze",
|
||||
"spotify_track_uri": "spotify:track:21Jj7td1D5HQYr18MLZTLS",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745948214,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T17:38:16Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 10763,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Otona no Jijo",
|
||||
"master_metadata_album_artist_name": "Za Ninngenn",
|
||||
"master_metadata_album_album_name": "Sanman",
|
||||
"spotify_track_uri": "spotify:track:6BfDkvp3wJq7cA0xDWDHAI",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745948260,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T17:39:06Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 4393,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Mela!",
|
||||
"master_metadata_album_artist_name": "Ryokuoushoku Shakai",
|
||||
"master_metadata_album_album_name": "Mela!",
|
||||
"spotify_track_uri": "spotify:track:6IO5nn84TKArsi3cjpIqaD",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745948296,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T17:41:01Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 12676,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "moved along",
|
||||
"master_metadata_album_artist_name": "wilt",
|
||||
"master_metadata_album_album_name": "moved along",
|
||||
"spotify_track_uri": "spotify:track:3CZZnpgvHNR71M4QnkQjzl",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": true,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745948346,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T17:42:44Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 33263,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Air Guitar",
|
||||
"master_metadata_album_artist_name": "Sobs",
|
||||
"master_metadata_album_album_name": "Air Guitar",
|
||||
"spotify_track_uri": "spotify:track:1ZL73Fic49PdXUSvL69wh8",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": true,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745948460,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T17:42:56Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 9943,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Pharmacist",
|
||||
"master_metadata_album_artist_name": "Alvvays",
|
||||
"master_metadata_album_album_name": "Blue Rev",
|
||||
"spotify_track_uri": "spotify:track:3r2vyNnqFKr6IraCqLtoBI",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": true,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745948563,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T17:44:41Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 28573,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "freequent letdown",
|
||||
"master_metadata_album_artist_name": "illuminati hotties",
|
||||
"master_metadata_album_album_name": "FREE I.H: This Is Not the One You've Been Waiting For",
|
||||
"spotify_track_uri": "spotify:track:5ZJfOkp2r5AbLjRdnu3UQd",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": true,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745948576,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T17:46:12Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 6041,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Choke",
|
||||
"master_metadata_album_artist_name": "I DONT KNOW HOW BUT THEY FOUND ME",
|
||||
"master_metadata_album_album_name": "Choke",
|
||||
"spotify_track_uri": "spotify:track:37mfTcSlX60JtAvAETytGs",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745948680,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T17:47:27Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 28523,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "We Own the Night",
|
||||
"master_metadata_album_artist_name": "Dance Gavin Dance",
|
||||
"master_metadata_album_album_name": "Instant Gratification",
|
||||
"spotify_track_uri": "spotify:track:7xCcUcMcGsIYGKUVgBZUw5",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745948771,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T17:52:13Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 72901,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "鏡面の波",
|
||||
"master_metadata_album_artist_name": "YURiKA",
|
||||
"master_metadata_album_album_name": "鏡面の波",
|
||||
"spotify_track_uri": "spotify:track:17pYAFEZjKZFU5PHiUMzqx",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745948847,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T17:52:34Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 15443,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "パレイド",
|
||||
"master_metadata_album_artist_name": "syh",
|
||||
"master_metadata_album_album_name": "パレイド",
|
||||
"spotify_track_uri": "spotify:track:7uXzW6dPhkd4NbRv8sLNS6",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745949133,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T17:53:33Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 40213,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Burning Friday Night",
|
||||
"master_metadata_album_artist_name": "Lucky Kilimanjaro",
|
||||
"master_metadata_album_album_name": "FULLCOLOR",
|
||||
"spotify_track_uri": "spotify:track:1NlkoYEA1ndLQIKzXTPh9V",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745949154,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T17:53:45Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 11946,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Better Things",
|
||||
"master_metadata_album_artist_name": "aespa",
|
||||
"master_metadata_album_album_name": "Drama - The 4th Mini Album",
|
||||
"spotify_track_uri": "spotify:track:330IIz7d75eqAsKq1xhzXR",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745949212,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T17:53:57Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 9953,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Thirsty",
|
||||
"master_metadata_album_artist_name": "aespa",
|
||||
"master_metadata_album_album_name": "MY WORLD - The 3rd Mini Album",
|
||||
"spotify_track_uri": "spotify:track:6nICBdDevG4NZysIqDFPEa",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745949225,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T17:54:47Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 44470,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Lucid Dream",
|
||||
"master_metadata_album_artist_name": "aespa",
|
||||
"master_metadata_album_album_name": "Savage - The 1st Mini Album",
|
||||
"spotify_track_uri": "spotify:track:285Bh5EkbxGGE76ge8JDbH",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745949237,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T17:55:59Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 70353,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Girls Never Die",
|
||||
"master_metadata_album_artist_name": "tripleS",
|
||||
"master_metadata_album_album_name": "<ASSEMBLE24>",
|
||||
"spotify_track_uri": "spotify:track:45OflED18VsURGw2z0Y6Cv",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745949286,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T17:58:34Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 8546,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Midas Touch",
|
||||
"master_metadata_album_artist_name": "KISS OF LIFE",
|
||||
"master_metadata_album_album_name": "Midas Touch",
|
||||
"spotify_track_uri": "spotify:track:0vaxYDAuAO1nPolC6bQp7V",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745949358,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T19:59:23Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 3033,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "I Will Go To You Like the First Snow",
|
||||
"master_metadata_album_artist_name": "AILEE",
|
||||
"master_metadata_album_album_name": "Guardian (Original Television Soundtrack), Pt. 9",
|
||||
"spotify_track_uri": "spotify:track:2BPXILn0MqOe5WroVXlvN1",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "logout",
|
||||
"shuffle": false,
|
||||
"skipped": false,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745949513,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T21:55:06Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 45964,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Ready or Not",
|
||||
"master_metadata_album_artist_name": "Bridgit Mendler",
|
||||
"master_metadata_album_album_name": "Hello My Name Is...",
|
||||
"spotify_track_uri": "spotify:track:5xvUgoVED1F4mBu8FL0HaW",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745963659,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T22:04:53Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 44523,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "お勉強しといてよ",
|
||||
"master_metadata_album_artist_name": "ZUTOMAYO",
|
||||
"master_metadata_album_album_name": "お勉強しといてよ",
|
||||
"spotify_track_uri": "spotify:track:6k90ibcH1z8Mx9684nfuLW",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745963706,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T22:06:52Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 8893,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "Finale.",
|
||||
"master_metadata_album_artist_name": "eill",
|
||||
"master_metadata_album_album_name": "my dream box",
|
||||
"spotify_track_uri": "spotify:track:2uGJ89l8tciHkYxzJF3xv6",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "endplay",
|
||||
"shuffle": false,
|
||||
"skipped": true,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745964293,
|
||||
"incognito_mode": false
|
||||
},
|
||||
{
|
||||
"ts": "2025-04-29T23:12:45Z",
|
||||
"platform": "windows",
|
||||
"ms_played": 5883,
|
||||
"conn_country": "US",
|
||||
"ip_addr": "x.x.x.x",
|
||||
"master_metadata_track_name": "ただ君に晴れ",
|
||||
"master_metadata_album_artist_name": "ヨルシカ",
|
||||
"master_metadata_album_album_name": "負け犬にアンコールはいらない",
|
||||
"spotify_track_uri": "spotify:track:3wJHCry960drNlAUGrJLmz",
|
||||
"episode_name": null,
|
||||
"episode_show_name": null,
|
||||
"spotify_episode_uri": null,
|
||||
"audiobook_title": null,
|
||||
"audiobook_uri": null,
|
||||
"audiobook_chapter_uri": null,
|
||||
"audiobook_chapter_title": null,
|
||||
"reason_start": "clickrow",
|
||||
"reason_end": "logout",
|
||||
"shuffle": false,
|
||||
"skipped": false,
|
||||
"offline": false,
|
||||
"offline_timestamp": 1745964412,
|
||||
"incognito_mode": false
|
||||
}
|
||||
]
|
||||
BIN
engine/Vkhuk8cw/import_complete/listenbrainz_shoko1_1749780844.zip
Executable file
BIN
engine/Vkhuk8cw/import_complete/listenbrainz_shoko1_1749780844.zip
Executable file
Binary file not shown.
771
engine/Vkhuk8cw/import_complete/maloja_import_test.json
Executable file
771
engine/Vkhuk8cw/import_complete/maloja_import_test.json
Executable file
|
|
@ -0,0 +1,771 @@
|
|||
{
|
||||
"maloja": {
|
||||
"export_time": 1748738994
|
||||
},
|
||||
"scrobbles": [
|
||||
{
|
||||
"time": 1746434410,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Kanade Ishihara",
|
||||
"Magnify Tokyo \u2022 Kanade Ishihara"
|
||||
],
|
||||
"title": "\u4f0a\u5439",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Kanade Ishihara",
|
||||
"Magnify Tokyo \u2022 Kanade Ishihara"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746434682,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 J.Rio",
|
||||
"J.Rio"
|
||||
],
|
||||
"title": "\u673d\u3061\u306a\u3044\u51a0",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 J.Rio",
|
||||
"J.Rio"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746434899,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Cherish",
|
||||
"Magnify Tokyo \u2022 Cherish"
|
||||
],
|
||||
"title": "\u30ad\u30df\u3060\u3051\u306e",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Cherish",
|
||||
"Magnify Tokyo \u2022 Cherish"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746435135,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Lauren Horii",
|
||||
"Magnify Tokyo \u2022 Lauren Horii"
|
||||
],
|
||||
"title": "Kokoro",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Lauren Horii",
|
||||
"Magnify Tokyo \u2022 Lauren Horii"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746435351,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Kanade Ishihara",
|
||||
"Magnify Tokyo \u2022 Kanade Ishihara"
|
||||
],
|
||||
"title": "Tsunagu",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Kanade Ishihara",
|
||||
"Magnify Tokyo \u2022 Kanade Ishihara"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746435518,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 Philip Shibata",
|
||||
"Philip Shibata"
|
||||
],
|
||||
"title": "\u4e3b\u306e\u5fa1\u540d\u3092",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 Philip Shibata",
|
||||
"Philip Shibata"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746435766,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 J.Rio",
|
||||
"J.Rio"
|
||||
],
|
||||
"title": "\u306a\u3093\u3069\u3067\u3082",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 J.Rio",
|
||||
"J.Rio"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746436009,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Cherish",
|
||||
"Magnify Tokyo \u2022 Cherish"
|
||||
],
|
||||
"title": "Yomichi",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Cherish",
|
||||
"Magnify Tokyo \u2022 Cherish"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746436289,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Cherish",
|
||||
"Magnify Tokyo \u2022 Cherish"
|
||||
],
|
||||
"title": "\u5341\u5b57\u67b6\u306e\u9670\u306b",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Cherish",
|
||||
"Magnify Tokyo \u2022 Cherish"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746436515,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Lauren Horii",
|
||||
"Philip Shibata",
|
||||
"Magnify Tokyo \u2022 Philip Shibata \u2022 Lauren Horii"
|
||||
],
|
||||
"title": "\u3042\u306a\u305f\u3060\u3051\u304c",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Lauren Horii",
|
||||
"Philip Shibata",
|
||||
"Magnify Tokyo \u2022 Philip Shibata \u2022 Lauren Horii"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746565073,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Lauren Horii",
|
||||
"Magnify Tokyo \u2022 Lauren Horii"
|
||||
],
|
||||
"title": "Kokoro",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Lauren Horii",
|
||||
"Magnify Tokyo \u2022 Lauren Horii"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746565287,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Kanade Ishihara",
|
||||
"Magnify Tokyo \u2022 Kanade Ishihara"
|
||||
],
|
||||
"title": "Tsunagu",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Kanade Ishihara",
|
||||
"Magnify Tokyo \u2022 Kanade Ishihara"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746565454,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 Philip Shibata",
|
||||
"Philip Shibata"
|
||||
],
|
||||
"title": "\u4e3b\u306e\u5fa1\u540d\u3092",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 Philip Shibata",
|
||||
"Philip Shibata"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746565702,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 J.Rio",
|
||||
"J.Rio"
|
||||
],
|
||||
"title": "\u306a\u3093\u3069\u3067\u3082",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 J.Rio",
|
||||
"J.Rio"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746565942,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Cherish",
|
||||
"Magnify Tokyo \u2022 Cherish"
|
||||
],
|
||||
"title": "Yomichi",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Cherish",
|
||||
"Magnify Tokyo \u2022 Cherish"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746675800,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Kanade Ishihara",
|
||||
"Magnify Tokyo \u2022 Kanade Ishihara"
|
||||
],
|
||||
"title": "\u4f0a\u5439",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Kanade Ishihara",
|
||||
"Magnify Tokyo \u2022 Kanade Ishihara"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746676072,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 J.Rio",
|
||||
"J.Rio"
|
||||
],
|
||||
"title": "\u673d\u3061\u306a\u3044\u51a0",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 J.Rio",
|
||||
"J.Rio"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746676289,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Cherish",
|
||||
"Magnify Tokyo \u2022 Cherish"
|
||||
],
|
||||
"title": "\u30ad\u30df\u3060\u3051\u306e",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Cherish",
|
||||
"Magnify Tokyo \u2022 Cherish"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746676518,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Lauren Horii",
|
||||
"Magnify Tokyo \u2022 Lauren Horii"
|
||||
],
|
||||
"title": "Kokoro",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Lauren Horii",
|
||||
"Magnify Tokyo \u2022 Lauren Horii"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746676732,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Kanade Ishihara",
|
||||
"Magnify Tokyo \u2022 Kanade Ishihara"
|
||||
],
|
||||
"title": "Tsunagu",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Kanade Ishihara",
|
||||
"Magnify Tokyo \u2022 Kanade Ishihara"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746838922,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Kanade Ishihara",
|
||||
"Magnify Tokyo \u2022 Kanade Ishihara"
|
||||
],
|
||||
"title": "\u4f0a\u5439",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Kanade Ishihara",
|
||||
"Magnify Tokyo \u2022 Kanade Ishihara"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746839194,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 J.Rio",
|
||||
"J.Rio"
|
||||
],
|
||||
"title": "\u673d\u3061\u306a\u3044\u51a0",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 J.Rio",
|
||||
"J.Rio"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746839410,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Cherish",
|
||||
"Magnify Tokyo \u2022 Cherish"
|
||||
],
|
||||
"title": "\u30ad\u30df\u3060\u3051\u306e",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Cherish",
|
||||
"Magnify Tokyo \u2022 Cherish"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746839640,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Lauren Horii",
|
||||
"Magnify Tokyo \u2022 Lauren Horii"
|
||||
],
|
||||
"title": "Kokoro",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Lauren Horii",
|
||||
"Magnify Tokyo \u2022 Lauren Horii"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746839853,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Kanade Ishihara",
|
||||
"Magnify Tokyo \u2022 Kanade Ishihara"
|
||||
],
|
||||
"title": "Tsunagu",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Kanade Ishihara",
|
||||
"Magnify Tokyo \u2022 Kanade Ishihara"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746840020,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 Philip Shibata",
|
||||
"Philip Shibata"
|
||||
],
|
||||
"title": "\u4e3b\u306e\u5fa1\u540d\u3092",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 Philip Shibata",
|
||||
"Philip Shibata"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746840268,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 J.Rio",
|
||||
"J.Rio"
|
||||
],
|
||||
"title": "\u306a\u3093\u3069\u3067\u3082",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 J.Rio",
|
||||
"J.Rio"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1746840511,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Cherish",
|
||||
"Magnify Tokyo \u2022 Cherish"
|
||||
],
|
||||
"title": "Yomichi",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Cherish",
|
||||
"Magnify Tokyo \u2022 Cherish"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1747139500,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Kanade Ishihara",
|
||||
"Magnify Tokyo \u2022 Kanade Ishihara"
|
||||
],
|
||||
"title": "\u4f0a\u5439",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Kanade Ishihara",
|
||||
"Magnify Tokyo \u2022 Kanade Ishihara"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1747139772,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 J.Rio",
|
||||
"J.Rio"
|
||||
],
|
||||
"title": "\u673d\u3061\u306a\u3044\u51a0",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 J.Rio",
|
||||
"J.Rio"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1747139988,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Cherish",
|
||||
"Magnify Tokyo \u2022 Cherish"
|
||||
],
|
||||
"title": "\u30ad\u30df\u3060\u3051\u306e",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Cherish",
|
||||
"Magnify Tokyo \u2022 Cherish"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1747140218,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Lauren Horii",
|
||||
"Magnify Tokyo \u2022 Lauren Horii"
|
||||
],
|
||||
"title": "Kokoro",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Lauren Horii",
|
||||
"Magnify Tokyo \u2022 Lauren Horii"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1747140431,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Kanade Ishihara",
|
||||
"Magnify Tokyo \u2022 Kanade Ishihara"
|
||||
],
|
||||
"title": "Tsunagu",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Kanade Ishihara",
|
||||
"Magnify Tokyo \u2022 Kanade Ishihara"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1747140598,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 Philip Shibata",
|
||||
"Philip Shibata"
|
||||
],
|
||||
"title": "\u4e3b\u306e\u5fa1\u540d\u3092",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 Philip Shibata",
|
||||
"Philip Shibata"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1747140846,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 J.Rio",
|
||||
"J.Rio"
|
||||
],
|
||||
"title": "\u306a\u3093\u3069\u3067\u3082",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Magnify Tokyo \u2022 J.Rio",
|
||||
"J.Rio"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1747141089,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Cherish",
|
||||
"Magnify Tokyo \u2022 Cherish"
|
||||
],
|
||||
"title": "Yomichi",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Cherish",
|
||||
"Magnify Tokyo \u2022 Cherish"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1747141369,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Cherish",
|
||||
"Magnify Tokyo \u2022 Cherish"
|
||||
],
|
||||
"title": "\u5341\u5b57\u67b6\u306e\u9670\u306b",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Cherish",
|
||||
"Magnify Tokyo \u2022 Cherish"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
},
|
||||
{
|
||||
"time": 1747141595,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Lauren Horii",
|
||||
"Philip Shibata",
|
||||
"Magnify Tokyo \u2022 Philip Shibata \u2022 Lauren Horii"
|
||||
],
|
||||
"title": "\u3042\u306a\u305f\u3060\u3051\u304c",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Lauren Horii",
|
||||
"Philip Shibata",
|
||||
"Magnify Tokyo \u2022 Philip Shibata \u2022 Lauren Horii"
|
||||
],
|
||||
"albumtitle": "Magnify Tokyo"
|
||||
},
|
||||
"length": null
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:default"
|
||||
}
|
||||
]
|
||||
}
|
||||
1
engine/Vkhuk8cw/import_complete/recenttracks-shoko2-1749776100.json
Executable file
1
engine/Vkhuk8cw/import_complete/recenttracks-shoko2-1749776100.json
Executable file
File diff suppressed because one or more lines are too long
|
|
@ -13,7 +13,7 @@ func SummaryHandler(store db.DB) http.HandlerFunc {
|
|||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
ctx := r.Context()
|
||||
l := logger.FromContext(ctx)
|
||||
l.Debug().Msg("GetTopAlbumsHandler: Received request to retrieve top albums")
|
||||
l.Debug().Msg("SummaryHandler: Received request to retrieve summary")
|
||||
timeframe := TimeframeFromRequest(r)
|
||||
|
||||
summary, err := summary.GenerateSummary(ctx, store, 1, timeframe, "")
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/gabehf/koito/internal/db"
|
||||
"github.com/gabehf/koito/internal/logger"
|
||||
|
|
@ -37,17 +36,6 @@ func OptsFromRequest(r *http.Request) db.GetItemsOpts {
|
|||
page = 1
|
||||
}
|
||||
|
||||
weekStr := r.URL.Query().Get("week")
|
||||
week, _ := strconv.Atoi(weekStr)
|
||||
monthStr := r.URL.Query().Get("month")
|
||||
month, _ := strconv.Atoi(monthStr)
|
||||
yearStr := r.URL.Query().Get("year")
|
||||
year, _ := strconv.Atoi(yearStr)
|
||||
fromStr := r.URL.Query().Get("from")
|
||||
from, _ := strconv.Atoi(fromStr)
|
||||
toStr := r.URL.Query().Get("to")
|
||||
to, _ := strconv.Atoi(toStr)
|
||||
|
||||
artistIdStr := r.URL.Query().Get("artist_id")
|
||||
artistId, _ := strconv.Atoi(artistIdStr)
|
||||
albumIdStr := r.URL.Query().Get("album_id")
|
||||
|
|
@ -55,6 +43,8 @@ func OptsFromRequest(r *http.Request) db.GetItemsOpts {
|
|||
trackIdStr := r.URL.Query().Get("track_id")
|
||||
trackId, _ := strconv.Atoi(trackIdStr)
|
||||
|
||||
tf := TimeframeFromRequest(r)
|
||||
|
||||
var period db.Period
|
||||
switch strings.ToLower(r.URL.Query().Get("period")) {
|
||||
case "day":
|
||||
|
|
@ -67,108 +57,48 @@ func OptsFromRequest(r *http.Request) db.GetItemsOpts {
|
|||
period = db.PeriodYear
|
||||
case "all_time":
|
||||
period = db.PeriodAllTime
|
||||
default:
|
||||
l.Debug().Msgf("OptsFromRequest: Using default value '%s' for period", db.PeriodDay)
|
||||
period = db.PeriodDay
|
||||
}
|
||||
|
||||
l.Debug().Msgf("OptsFromRequest: Parsed options: limit=%d, page=%d, week=%d, month=%d, year=%d, from=%d, to=%d, artist_id=%d, album_id=%d, track_id=%d, period=%s",
|
||||
limit, page, week, month, year, from, to, artistId, albumId, trackId, period)
|
||||
limit, page, tf.Week, tf.Month, tf.Year, tf.FromUnix, tf.ToUnix, artistId, albumId, trackId, period)
|
||||
|
||||
return db.GetItemsOpts{
|
||||
Limit: limit,
|
||||
Period: period,
|
||||
Page: page,
|
||||
Week: week,
|
||||
Month: month,
|
||||
Year: year,
|
||||
From: int64(from),
|
||||
To: int64(to),
|
||||
ArtistID: artistId,
|
||||
AlbumID: albumId,
|
||||
TrackID: trackId,
|
||||
Limit: limit,
|
||||
Page: page,
|
||||
Timeframe: tf,
|
||||
ArtistID: artistId,
|
||||
AlbumID: albumId,
|
||||
TrackID: trackId,
|
||||
}
|
||||
}
|
||||
|
||||
// Takes a request and returns a db.Timeframe representing the week, month, year, period, or unix
|
||||
// time range specified by the request parameters
|
||||
func TimeframeFromRequest(r *http.Request) db.Timeframe {
|
||||
opts := OptsFromRequest(r)
|
||||
now := time.Now()
|
||||
loc := now.Location()
|
||||
q := r.URL.Query()
|
||||
|
||||
// if 'from' is set, but 'to' is not set, assume 'to' should be now
|
||||
if opts.From != 0 && opts.To == 0 {
|
||||
opts.To = now.Unix()
|
||||
}
|
||||
|
||||
// YEAR
|
||||
if opts.Year != 0 && opts.Month == 0 && opts.Week == 0 {
|
||||
start := time.Date(opts.Year, 1, 1, 0, 0, 0, 0, loc)
|
||||
end := time.Date(opts.Year+1, 1, 1, 0, 0, 0, 0, loc).Add(-time.Second)
|
||||
|
||||
opts.From = start.Unix()
|
||||
opts.To = end.Unix()
|
||||
}
|
||||
|
||||
// MONTH (+ optional year)
|
||||
if opts.Month != 0 {
|
||||
year := opts.Year
|
||||
if year == 0 {
|
||||
year = now.Year()
|
||||
if int(now.Month()) < opts.Month {
|
||||
year--
|
||||
}
|
||||
parseInt := func(key string) int {
|
||||
v := q.Get(key)
|
||||
if v == "" {
|
||||
return 0
|
||||
}
|
||||
|
||||
start := time.Date(year, time.Month(opts.Month), 1, 0, 0, 0, 0, loc)
|
||||
end := endOfMonth(year, time.Month(opts.Month), loc)
|
||||
|
||||
opts.From = start.Unix()
|
||||
opts.To = end.Unix()
|
||||
i, _ := strconv.Atoi(v)
|
||||
return i
|
||||
}
|
||||
|
||||
// WEEK (+ optional year)
|
||||
if opts.Week != 0 {
|
||||
year := opts.Year
|
||||
if year == 0 {
|
||||
year = now.Year()
|
||||
|
||||
_, currentWeek := now.ISOWeek()
|
||||
if currentWeek < opts.Week {
|
||||
year--
|
||||
}
|
||||
parseInt64 := func(key string) int64 {
|
||||
v := q.Get(key)
|
||||
if v == "" {
|
||||
return 0
|
||||
}
|
||||
|
||||
// ISO week 1 is defined as the week with Jan 4 in it
|
||||
jan4 := time.Date(year, 1, 4, 0, 0, 0, 0, loc)
|
||||
week1Start := startOfWeek(jan4)
|
||||
|
||||
start := week1Start.AddDate(0, 0, (opts.Week-1)*7)
|
||||
end := endOfWeek(start)
|
||||
|
||||
opts.From = start.Unix()
|
||||
opts.To = end.Unix()
|
||||
i, _ := strconv.ParseInt(v, 10, 64)
|
||||
return i
|
||||
}
|
||||
|
||||
return db.Timeframe{
|
||||
Period: opts.Period,
|
||||
T1u: opts.From,
|
||||
T2u: opts.To,
|
||||
Period: db.Period(q.Get("period")),
|
||||
Year: parseInt("year"),
|
||||
Month: parseInt("month"),
|
||||
Week: parseInt("week"),
|
||||
FromUnix: parseInt64("from"),
|
||||
ToUnix: parseInt64("to"),
|
||||
}
|
||||
}
|
||||
func startOfWeek(t time.Time) time.Time {
|
||||
// ISO week: Monday = 1
|
||||
weekday := int(t.Weekday())
|
||||
if weekday == 0 { // Sunday
|
||||
weekday = 7
|
||||
}
|
||||
return time.Date(t.Year(), t.Month(), t.Day()-weekday+1, 0, 0, 0, 0, t.Location())
|
||||
}
|
||||
func endOfWeek(t time.Time) time.Time {
|
||||
return startOfWeek(t).AddDate(0, 0, 7).Add(-time.Second)
|
||||
}
|
||||
func endOfMonth(year int, month time.Month, loc *time.Location) time.Time {
|
||||
startNextMonth := time.Date(year, month+1, 1, 0, 0, 0, 0, loc)
|
||||
return startNextMonth.Add(-time.Second)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ package handlers
|
|||
|
||||
import (
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/gabehf/koito/internal/db"
|
||||
"github.com/gabehf/koito/internal/logger"
|
||||
|
|
@ -23,54 +22,39 @@ func StatsHandler(store db.DB) http.HandlerFunc {
|
|||
|
||||
l.Debug().Msg("StatsHandler: Received request to retrieve statistics")
|
||||
|
||||
var period db.Period
|
||||
switch strings.ToLower(r.URL.Query().Get("period")) {
|
||||
case "day":
|
||||
period = db.PeriodDay
|
||||
case "week":
|
||||
period = db.PeriodWeek
|
||||
case "month":
|
||||
period = db.PeriodMonth
|
||||
case "year":
|
||||
period = db.PeriodYear
|
||||
case "all_time":
|
||||
period = db.PeriodAllTime
|
||||
default:
|
||||
l.Debug().Msgf("StatsHandler: Using default value '%s' for period", db.PeriodDay)
|
||||
period = db.PeriodDay
|
||||
}
|
||||
tf := TimeframeFromRequest(r)
|
||||
|
||||
l.Debug().Msgf("StatsHandler: Fetching statistics for period '%s'", period)
|
||||
l.Debug().Msg("StatsHandler: Fetching statistics")
|
||||
|
||||
listens, err := store.CountListens(r.Context(), db.Timeframe{Period: period})
|
||||
listens, err := store.CountListens(r.Context(), tf)
|
||||
if err != nil {
|
||||
l.Err(err).Msg("StatsHandler: Failed to fetch listen count")
|
||||
utils.WriteError(w, "failed to get listens: "+err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
||||
tracks, err := store.CountTracks(r.Context(), db.Timeframe{Period: period})
|
||||
tracks, err := store.CountTracks(r.Context(), tf)
|
||||
if err != nil {
|
||||
l.Err(err).Msg("StatsHandler: Failed to fetch track count")
|
||||
utils.WriteError(w, "failed to get tracks: "+err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
||||
albums, err := store.CountAlbums(r.Context(), db.Timeframe{Period: period})
|
||||
albums, err := store.CountAlbums(r.Context(), tf)
|
||||
if err != nil {
|
||||
l.Err(err).Msg("StatsHandler: Failed to fetch album count")
|
||||
utils.WriteError(w, "failed to get albums: "+err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
||||
artists, err := store.CountArtists(r.Context(), db.Timeframe{Period: period})
|
||||
artists, err := store.CountArtists(r.Context(), tf)
|
||||
if err != nil {
|
||||
l.Err(err).Msg("StatsHandler: Failed to fetch artist count")
|
||||
utils.WriteError(w, "failed to get artists: "+err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
||||
timeListenedS, err := store.CountTimeListened(r.Context(), db.Timeframe{Period: period})
|
||||
timeListenedS, err := store.CountTimeListened(r.Context(), tf)
|
||||
if err != nil {
|
||||
l.Err(err).Msg("StatsHandler: Failed to fetch time listened")
|
||||
utils.WriteError(w, "failed to get time listened: "+err.Error(), http.StatusInternalServerError)
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ func TestImportLastFM(t *testing.T) {
|
|||
track, err := store.GetTrack(context.Background(), db.GetTrackOpts{Title: "because I'm stupid?", ArtistIDs: []int32{artist.ID}})
|
||||
require.NoError(t, err)
|
||||
t.Log(track)
|
||||
listens, err := store.GetListensPaginated(context.Background(), db.GetItemsOpts{TrackID: int(track.ID), Period: db.PeriodAllTime})
|
||||
listens, err := store.GetListensPaginated(context.Background(), db.GetItemsOpts{TrackID: int(track.ID), Timeframe: db.Timeframe{Period: db.PeriodAllTime}})
|
||||
require.NoError(t, err)
|
||||
require.Len(t, listens.Items, 1)
|
||||
assert.WithinDuration(t, time.Unix(1749776100, 0), listens.Items[0].Time, 1*time.Second)
|
||||
|
|
@ -146,7 +146,7 @@ func TestImportLastFM_MbzDisabled(t *testing.T) {
|
|||
track, err := store.GetTrack(context.Background(), db.GetTrackOpts{Title: "because I'm stupid?", ArtistIDs: []int32{artist.ID}})
|
||||
require.NoError(t, err)
|
||||
t.Log(track)
|
||||
listens, err := store.GetListensPaginated(context.Background(), db.GetItemsOpts{TrackID: int(track.ID), Period: db.PeriodAllTime})
|
||||
listens, err := store.GetListensPaginated(context.Background(), db.GetItemsOpts{TrackID: int(track.ID), Timeframe: db.Timeframe{Period: db.PeriodAllTime}})
|
||||
require.NoError(t, err)
|
||||
require.Len(t, listens.Items, 1)
|
||||
assert.WithinDuration(t, time.Unix(1749776100, 0), listens.Items[0].Time, 1*time.Second)
|
||||
|
|
@ -216,7 +216,7 @@ func TestImportListenBrainz(t *testing.T) {
|
|||
track, err := store.GetTrack(context.Background(), db.GetTrackOpts{MusicBrainzID: uuid.MustParse("08e8f55b-f1a4-46b8-b2d1-fab4c592165c")})
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, "Desert", track.Title)
|
||||
listens, err := store.GetListensPaginated(context.Background(), db.GetItemsOpts{TrackID: int(track.ID), Period: db.PeriodAllTime})
|
||||
listens, err := store.GetListensPaginated(context.Background(), db.GetItemsOpts{TrackID: int(track.ID), Timeframe: db.Timeframe{Period: db.PeriodAllTime}})
|
||||
require.NoError(t, err)
|
||||
assert.Len(t, listens.Items, 1)
|
||||
assert.WithinDuration(t, time.Unix(1749780612, 0), listens.Items[0].Time, 1*time.Second)
|
||||
|
|
@ -254,7 +254,7 @@ func TestImportListenBrainz_MbzDisabled(t *testing.T) {
|
|||
track, err := store.GetTrack(context.Background(), db.GetTrackOpts{MusicBrainzID: uuid.MustParse("08e8f55b-f1a4-46b8-b2d1-fab4c592165c")})
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, "Desert", track.Title)
|
||||
listens, err := store.GetListensPaginated(context.Background(), db.GetItemsOpts{TrackID: int(track.ID), Period: db.PeriodAllTime})
|
||||
listens, err := store.GetListensPaginated(context.Background(), db.GetItemsOpts{TrackID: int(track.ID), Timeframe: db.Timeframe{Period: db.PeriodAllTime}})
|
||||
require.NoError(t, err)
|
||||
assert.Len(t, listens.Items, 1)
|
||||
assert.WithinDuration(t, time.Unix(1749780612, 0), listens.Items[0].Time, 1*time.Second)
|
||||
|
|
|
|||
|
|
@ -74,15 +74,15 @@ func getApiKey(t *testing.T, session string) {
|
|||
|
||||
func truncateTestData(t *testing.T) {
|
||||
err := store.Exec(context.Background(),
|
||||
`TRUNCATE
|
||||
artists,
|
||||
`TRUNCATE
|
||||
artists,
|
||||
artist_aliases,
|
||||
tracks,
|
||||
artist_tracks,
|
||||
releases,
|
||||
artist_releases,
|
||||
release_aliases,
|
||||
listens
|
||||
tracks,
|
||||
artist_tracks,
|
||||
releases,
|
||||
artist_releases,
|
||||
release_aliases,
|
||||
listens
|
||||
RESTART IDENTITY CASCADE`)
|
||||
require.NoError(t, err)
|
||||
}
|
||||
|
|
@ -211,7 +211,7 @@ func TestGetters(t *testing.T) {
|
|||
assert.Equal(t, "花の塔", track.Title)
|
||||
|
||||
// Listen was saved
|
||||
resp, err = http.DefaultClient.Get(host() + "/apis/web/v1/listens")
|
||||
resp, err = http.DefaultClient.Get(host() + "/apis/web/v1/listens?period=all_time")
|
||||
assert.NoError(t, err)
|
||||
var listens db.PaginatedResponse[models.Listen]
|
||||
err = json.NewDecoder(resp.Body).Decode(&listens)
|
||||
|
|
@ -220,21 +220,21 @@ func TestGetters(t *testing.T) {
|
|||
assert.EqualValues(t, 2, listens.Items[0].Track.ID)
|
||||
assert.Equal(t, "Where Our Blue Is", listens.Items[0].Track.Title)
|
||||
|
||||
resp, err = http.DefaultClient.Get(host() + "/apis/web/v1/top-artists")
|
||||
resp, err = http.DefaultClient.Get(host() + "/apis/web/v1/top-artists?period=all_time")
|
||||
assert.NoError(t, err)
|
||||
var artists db.PaginatedResponse[models.Artist]
|
||||
err = json.NewDecoder(resp.Body).Decode(&artists)
|
||||
require.NoError(t, err)
|
||||
require.Len(t, artists.Items, 3)
|
||||
|
||||
resp, err = http.DefaultClient.Get(host() + "/apis/web/v1/top-albums")
|
||||
resp, err = http.DefaultClient.Get(host() + "/apis/web/v1/top-albums?period=all_time")
|
||||
assert.NoError(t, err)
|
||||
var albums db.PaginatedResponse[models.Album]
|
||||
err = json.NewDecoder(resp.Body).Decode(&albums)
|
||||
require.NoError(t, err)
|
||||
require.Len(t, albums.Items, 3)
|
||||
|
||||
resp, err = http.DefaultClient.Get(host() + "/apis/web/v1/top-tracks")
|
||||
resp, err = http.DefaultClient.Get(host() + "/apis/web/v1/top-tracks?period=all_time")
|
||||
assert.NoError(t, err)
|
||||
var tracks db.PaginatedResponse[models.Track]
|
||||
err = json.NewDecoder(resp.Body).Decode(&tracks)
|
||||
|
|
@ -439,7 +439,7 @@ func TestStats(t *testing.T) {
|
|||
|
||||
t.Run("Submit Listens", doSubmitListens)
|
||||
|
||||
resp, err = http.DefaultClient.Get(host() + "/apis/web/v1/stats")
|
||||
resp, err = http.DefaultClient.Get(host() + "/apis/web/v1/stats?period=all_time")
|
||||
t.Log(resp)
|
||||
require.NoError(t, err)
|
||||
var actual handlers.StatsResponse
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue