Commit Graph

13 Commits

Author SHA1 Message Date
V1ck3s
93dfcf3c2e fix: use correct 'subsonic-response' key format in JSON responses
ASP.NET Core serializes anonymous objects with camelCase, producing
'subsonicResponse' instead of 'subsonic-response'. Fixed by using
Dictionary with explicit key names for all JSON responses.
2025-12-13 18:06:37 +01:00
V1ck3s
a5e065dd31 fix: remove broken ping endpoint and improve error handling
- Remove custom /ping endpoint that returned non-standard JSON format
- Fix wildcard endpoint to return Subsonic-compatible error responses
- All requests now properly relay to/from the real Subsonic server
2025-12-13 18:06:37 +01:00
V1ck3s
9b398c7484 feat: replace OpenSSL with native Blowfish decryption and add library rescan
- Replace OpenSSL subprocess with BouncyCastle native Blowfish CBC decryption
- Add automatic Subsonic library scan trigger after downloads (with 30s debounce)
- Improve error handling in DeezerMetadataService search methods
- Add comprehensive tests for download service, metadata service, and library service
- Increase test coverage from 13 to 32 tests
2025-12-13 18:06:37 +01:00
V1ck3s
ad15e10ea6 test: add unit tests for DeezerMetadataService and LocalLibraryService
- Add DeezerMetadataServiceTests with mocked HTTP responses
- Add LocalLibraryServiceTests for song ID parsing and registration
- Configure xUnit test project with Moq and MVC Testing packages
2025-12-13 18:06:37 +01:00
V1ck3s
5a317c8de7 feat: implement real search results merging from Subsonic and Deezer
- Parse Subsonic search3 response (JSON and XML formats)
- Merge local results with external Deezer results
- Local results appear first, then external results
- Add isExternal flag to distinguish sources
2025-12-13 18:06:37 +01:00
V1ck3s
8aa9c2d437 feat: implement DeezerDownloadService with Blowfish decryption
- Port JavaScript DeezerDownloader to C#
- Add Deezer API authentication with ARL token
- Implement track download via media.deezer.com API
- Add Blowfish CBC decryption for encrypted chunks (uses OpenSSL)
- Add rate limiting and retry with exponential backoff
- Update config for Deezer ARL tokens
- Configure Subsonic URL to 192.168.1.12:4533
2025-12-13 18:06:37 +01:00
V1ck3s
6b07ac7646 feat: add subsonic proxy architecture with external music services
- Add MusicModels (Song, Artist, Album, SearchResult, DownloadInfo)
- Add IMusicMetadataService and DeezerMetadataService for external search
- Add IDownloadService and DeezspotDownloadService for downloads
- Add LocalLibraryService for managing downloaded songs cache
- Add custom endpoints: search3, stream, getSong, getAlbum, getCoverArt
- Configure dependency injection for all services
2025-12-13 18:06:37 +01:00
V1ck3s
1e8bfd108e fix: move gitignore 2025-12-08 14:33:19 +01:00
V1ck3s
83fdcd2fcc feat: update RelayToSubsonic method to return byte array and adjust content handling 2025-09-21 17:02:31 +02:00
V1ck3s
17769e2c28 feat: add subsonic all in one endpoint, subsonic settings configuration and CORS policy 2025-09-21 16:22:18 +02:00
V1ck3s
25c95a52d9 add SubsonicController and configure HttpClient 2025-09-20 17:48:30 +02:00
V1ck3s
b018ab7cec initial commit 2025-09-20 16:52:41 +02:00
V1ck3s
843ef87da8 initial commit 2025-09-20 16:42:46 +02:00