* 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
* Exclude paths based on new exclude pattern option
* Add test for excluded paths
* Add exclude pattern option to docs
* Set exclude regexp only if given argument is set
* Update scanner/scanner.go
---------
Co-authored-by: Senan Kelly <senan@senan.xyz>
fixes#171fixes#31
* Initial code. Compiles and passes unit tests.
* Moved average rating calculation from rating fetch to set rating function. Still only compiled and unit tested.
* Bug fixes
* Fixed bug in savePlayQueue. Removed unique_index for star / rating entries because it's not valid.
* Changed time format on stars to RFC3339Nano to match created date format.
* Lint fixes.
* More lint fixes.
* Removed add* functions and replaced with Preload.
* Fixed several bugs in handlers for getStarred and getStarred2.
* Fixed bug when using music folder ID.
Co-authored-by: Brian Doherty <brian@hplaptop.dohertyfamily.me>
* First cut at fsnotify support. Tested on Linux.
* Fixed bug in logging.
* Fixed lint issues.
* Added new scan watcher option to README.md
* Inverted conditional and dedented following code as per PR discussion.
* Changed command line switch and error return on ExecuteWatch() as per GH comments.
* Scan watcher: Removed scan at first start. Modified watcher to set a 10 second timer and then process in bulk.
Co-authored-by: Brian Doherty <brian@hplaptop.dohertyfamily.me>
* Initial commit of internet radio support.
* Added first test for internet radio.
* Refactor to prepare for more test cases.
* Added a few more tests. Realized that I was not calling as admin so added ability to mock admin.
* Added more internet radio tests. Added proper JSON unmarshaling for ID.
* More test cases. Fixed some accidental tabs in files.
* Fixed some more tabs.
* lint fixes
* Changed placeholder for homepage URL to fit into box.
* Finished out internet radio test cases. Found a few bad error codes in internet radio AND podcasts (mea culpa).
* Realized that delete via website was not checking properly if id existed. Fixed.
gofmt
* Added https support. Will revert to http if either cert or key are empty strings.
* Update server/server.go
Co-authored-by: Senan Kelly <senan@senan.xyz>
* Fixed lint issues.
Co-authored-by: Senan Kelly <senan@senan.xyz>