-
-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add integration with last.fm and tidal #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tsirysndr
wants to merge
25
commits into
main
Choose a base branch
from
feat/tidal-lastfm
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Added LastFmClient to fetch user info and recent/loved tracks. - Created SpotifyClient and TidalClient for handling Spotify and Tidal tokens. - Introduced sync module with commands to start synchronization services. - Updated database schema to store session keys and user information for Last.fm. - Implemented decryption for tokens using AES-256 CTR. - Added repository functions to list tokens from the database. - Created types for Last.fm API responses including user, track, album, and loved tracks. - Integrated Redis for caching and improved data fetching from Last.fm, Spotify, and Tidal. - Enhanced error handling and logging throughout the synchronization process.
- Added tidalId and spotifyId fields to albums, artists, and tracks schemas. - Improved formatting of primary key definition in albums, artists, and tracks. - Updated Spotify login to include user-library-read scope. feat: Enhance Spotify and Tidal client functionality - Implemented access token retrieval for Spotify and Tidal clients. - Added methods to fetch user saved tracks and user tracks from Tidal. - Included detailed track and album information retrieval from Tidal API. fix: Adjust LastFM and Spotify user limits - Increased MAX_USERS limit from 100 to 500 in LastFM and Spotify sync processes. feat: Introduce JWT token generation and decoding - Added token module for generating and decoding JWT tokens. - Implemented tests for token generation and decoding functionality. feat: Expand Tidal and Spotify types - Created new types for handling Spotify and Tidal responses, including albums, artists, and tracks. - Added necessary modules for external URLs and IDs in Spotify types. - Established relationships and include structures for Tidal types. chore: Update journal with new version tags - Added new version tags to the journal for tracking changes.
… and scrobble schemas - Added tidalId, spotifyId, and appleMusicId fields to artist, album, song, and scrobble JSON schemas. - Introduced roles field in artist schema to specify artist roles. - Included ISRC field in song and scrobble schemas for international standard recording code. - Updated corresponding PKL definitions and TypeScript interfaces to reflect these changes. - Ensured all relevant files and services are updated to handle new fields.
…n tidal_accounts, tidal_tokens, tracks, user_albums, user_artists, user_playlists, user_tracks, users, and webscrobblers tables. Added lastfmLink to tracks schema. Enhance Spotify client to randomly select tokens to avoid rate limiting and implement search functionality for tracks and artists. Add new track repository for managing track metadata updates and retrieval. Implement Rocksky API integration for scrobbling and saving tracks. Introduce search functionality to find tracks in the database and Spotify. Update Spotify and Tidal metadata handling in sync processes. Add new Xata models for albums, artists, and tracks to facilitate data management.
- Introduced a new `Cache` struct for Redis integration. - Added rate limiting to `LastFmClient`, `SpotifyClient`, and `TidalClient` using the `governor` crate. - Updated dependencies in `Cargo.toml` for `governor` and `nonzero_ext`. - Removed unused Redis client parameter from `start` functions in `lastfm`, `spotify`, and `tidal` modules.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.