Commit Graph

34 Commits

Author SHA1 Message Date
Philipp Wolfer
552aa3afb1 feat(listenbrainz): submit release MBID (#443) 2023-12-29 19:20:14 +00:00
sentriz
e0b1603c00 feat(subsonic): update track play stats on scrobble instead of stream 2023-09-28 20:58:59 +01:00
Senan Kelly
f119659acf refactor scrobblers (#383)
- no need to explicitly pass api key
- move packages up a level
- catch more errors by extended scrobbler interface with IsUserAuthenticated
- move interface to server
- delete scrobbber package, clients implicitly satisfy Scrobble

this also helps with gonic-lastfm-sync
2023-09-27 00:13:00 +00:00
sentriz
32064d0279 add lastfm get user info method 2023-09-26 22:43:48 +01:00
sentriz
fd1852c7f0 return loved date in loved tracks response 2023-09-26 11:53:23 +01:00
sentriz
81bf36abc1 add love track method to lastfm 2023-09-26 01:40:40 +01:00
sentriz
d77b0ebf4c use http.Method* strings in lastfm tests 2023-09-26 01:15:58 +01:00
sentriz
9026c9e2c0 feat(lastfm): add user get loved tracks method 2023-09-26 00:06:23 +01:00
Senan Kelly
39fb8e7d54 use package level require/assert in tests (#382) 2023-09-25 17:39:39 +00:00
sentriz
e3dd812b6c feat(ci): add a bunch more linters 2023-09-22 19:05:55 +02:00
sentriz
12c31cd334 use an enum for db settings 2023-09-14 00:51:40 +01:00
sentriz
a15b584fda move lastfm mock client stuff to a new package so we can reuse it
for the artistcache test
2023-09-14 00:19:52 +01:00
sentriz
2b9052ca87 remove lastfm debug prints 2023-09-13 20:34:32 +01:00
Gregor Zurowski
7a29c881e8 add tests for Last.FM client getSession 2023-09-12 00:53:36 +01:00
Gregor Zurowski
9a3f9395e6 add unit tests for Last.FM scrobbler 2023-09-12 00:53:36 +01:00
sentriz
ddd160545c use comma when joining artists 2023-09-10 16:48:06 +01:00
sentriz
3ac77823c3 feat(subsonic): add support for multi-valued album artist tags
closes #103

a

a

a

r

a

a

a

a

a

a

a

a

a

a
2023-09-10 14:05:32 +01:00
Gregor Zurowski
478f512d2c add tests for Last.FM ArtistGetSimilar (#355)
* Add tests for Last.FM client `ArtistGetSimilar`

* [Minor] Fix typo in test
2023-08-17 11:29:15 +00:00
Gregor Zurowski
09413ea06e add tests for LastFM similar tracks (#347)
* Rename and reuse image struct

* Add LastFM test for similar tracks
2023-08-13 21:33:52 +00:00
Gregor Zurowski
2e879f6f16 add test for LastFM top tracks (#330) 2023-06-29 21:11:57 +00:00
Gregor Zurowski
dbcccdc811 add initial Last.FM tests (#329)
* Move model into separate file

* Separate Last.FM client and scrobbler

* Use separate Last.FM client and scrobbler

* Fix playcount attribute name

* Add initial test for Last.FM client
2023-05-20 11:24:03 +00:00
Gregor Zurowski
85eeb860bf feat(ci): update golangci-lint and action (#325)
* Update linter

- Update Github golangci-lint-action to v3
- Update golangci-lint to v1.52.2

* Fix linter issues after updating to linter 1.52.2
2023-05-19 12:05:14 +00:00
Gregor Zurowski
5363beb031 fix names in ListenBrainz tests (#321)
* Rename test data file

* Rename require instance
2023-05-13 16:27:49 +00:00
Gregor Zurowski
b7a50ee9cb use testify for all tests (#319)
* Use Testify for all tests

* Terminate failing non-relaxed tests using `require`
2023-05-13 15:17:37 +00:00
Gregor Zurowski
bb8507a72f add unit tests for ListenBrainz scrobbler (#317)
* Access HTTP client via interface to allow for testing

* [Minor] Fix typo

* Add initial test cases for ListenBrainz scrobbler

* Fix linter error for insecure TLS in tests

* Use Testify for unit tests

* Move model into separate file

* Embed JSON responses into tests

* [Minor] Fix test function names
2023-05-13 12:10:11 +00:00
sentriz
475749534f feat(subsonic): fetch artist images from lastfm opengraph
closes #295

Co-authored-by: cacko <alex@cacko.net>
2023-02-20 22:03:58 +00:00
sentriz
2bf8595d96 calculate lastfm param signature last 2022-12-13 10:59:21 +00:00
Alex McGrath
2bc3f31554 feat(scrobble): only send musicbrainz id if it's a valid uuid
since some people may have a non musicbrainz uuid in the tag's place. eg with the discogs/lastfm plugins for beets.io
2022-12-08 17:39:01 +00:00
sentriz
8ee357b021 fix(listenbrainz): submit track recording ID instead of track ID
closes #240
2022-10-08 16:09:22 +01:00
sentriz
7d0d036f0b feat(lastfm): scrobble with duration 2022-09-06 17:48:56 +01:00
sentriz
668c334f45 remove redundant lastfm user session check 2022-05-18 22:01:00 +01:00
sentriz
4fce8e67ce log bad scrobble responses
related #219
2022-05-15 15:02:15 +01:00
sentriz
e883de8c95 fix(listenbrainz): set json header
closes #216

related https://github.com/sentriz/gonic/issues/216
related https://github.com/krateng/maloja/issues/141
2022-05-02 14:52:31 +01:00
sentriz
8b803ecf20 refactor: move shared packages up a level 2022-04-13 01:10:46 +01:00