Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Summary of Most Important Changes
The code changes primarily focus on improving the robustness and user feedback of the `TwitchHandler.cs` file, specifically in handling track fetching and adding tracks to a playlist. Additionally, the version number in `AssemblyInfo.cs` has been incremented. ### List of Changes 1. **Version Number Update**: - The version numbers in `AssemblyInfo.cs` have been updated from `1.6.4.5` to `1.6.4.6`. - **Reference**: `AssemblyInfo.cs` 2. **Null Check for Track Object**: - A null check for the `track` object has been added after fetching the track using `SpotifyApiHandler.GetTrack(trackId)`. If the track is null, a chat message indicating no track was found is sent, and the function returns early. - **Reference**: `TwitchHandler.cs` 3. **Success Response Message**: - A line has been added to send a chat message with the success response after adding the track to the playlist and before uploading it to the queue. - **Reference**: `TwitchHandler.cs` 4. **Handling Spotify Availability in Russia**: - A fix has been added to handle the case where Spotify is not available in Russia. If the track has an error with status 403, a specific message "Track has been added to the queue." is returned. - **Reference**: `TwitchHandler.cs`
- Loading branch information