Commit Graph

20 Commits

Author SHA1 Message Date
Jack
b8b7cc6be3
Feature/support bazarr (#214)
* remove the branch requirement to run tests

feature/support-bazarr

* lint makefile

feature/support-bazarr

* add bazarr to readme

feature/support-bazarr

* also comment out release image as we only want tests to happen

feature/support-bazarr

* initial changes to start attempting to pull bazarr i thinnk?

feature/support-bazarr

* make it only run the tests, but skip release image

feature/support-bazarr

* add a genric makefile to build container localy, run and test

feature/support-bazarr

* rename build command

feature/support-bazarr

* add pic and grafana dashboard adjustments

feature/support-bazarr

* refactor metrics to just be contained within 1 class

* add logic to allow csv values to params

* remove some todos

* make api version optional

feature/support-bazarr

* adjust makefile to auto kill and start

feature/support-bazarr

* remove now invalid test

feature/support-bazarr

* add a test for no api version instead

feature/support-bazarr

* add a test to enforce csv params moving forward

feature/support-bazarr

* add saml payloads for all endpoints, add test that mocks and verifies result

feature/support-bazarr

* Update .env.dist

* Update .gitignore

* Update internal/client/client.go

* add a tidy task

---------

Co-authored-by: Devin Buhl <onedr0p@users.noreply.github.com>
2023-10-08 02:32:59 -04:00
Russell Troxel
6dcb7b4d92
Add Sabnzbd Support (#141)
* Add Sabnzbd Support

Signed-off-by: Russell Troxel <russell@troxel.io>

* Fix collector name in sabnzbd logger

Signed-off-by: Russell Troxel <russell@troxel.io>

---------

Signed-off-by: Russell Troxel <russell@troxel.io>
2023-04-03 19:59:42 -04:00
Russell Troxel
73fbf8dfaf
Add Panic Recovery & Logging to Client JSON Unmarshalling (#139) 2023-03-28 14:33:13 -04:00
Russell Troxel
3cd02da157
(3/3) Use Zap for structured logging rather than logrus. (#115)
* Refactor from logrus to zap, with structured logging

Signed-off-by: Russell Troxel <russell.troxel@segment.com>

* Print config errors to stderr when before initLogger

Signed-off-by: Russell Troxel <russell.troxel@segment.com>

---------

Signed-off-by: Russell Troxel <russell.troxel@segment.com>
2023-03-18 11:16:02 -04:00
Russell Troxel
78c9991d1e
(2/3) Use Cobra, Koanf, and Ozzo rather than urfave/cli (#114)
* Refactor to use Cobra and Koanf for CLI parsing

Signed-off-by: Russell Troxel <russell.troxel@segment.com>

* use gookit/validate rather than ozzo-validation

Signed-off-by: Russell Troxel <russell.troxel@segment.com>

---------

Signed-off-by: Russell Troxel <russell.troxel@segment.com>
2023-03-18 07:31:35 -04:00
Russell Troxel
05b277dec9
fix: Fix Query Param addition in client.go (#116)
Signed-off-by: Russell Troxel <russell.troxel@segment.com>
2023-03-17 16:04:26 -04:00
Russell Troxel
5834fa69fb
(1/3) Add Options for Auth via Form Data (#110)
Co-authored-by: Devin Buhl <onedr0p@users.noreply.github.com>
2023-03-17 14:53:13 -04:00
Russell Troxel
3d59a7a462
[Refactor] (1/2) Refactor client to leverage a custom Transport & url.URL (#106)
* Refactor Client & Add Retries

Signed-off-by: Russell Troxel <russelltroxel@gmail.com>

* Add Tests

Signed-off-by: Russell Troxel <russelltroxel@gmail.com>

* Catch a few missed DoRequest callsites

Signed-off-by: Russell Troxel <russelltroxel@gmail.com>

---------

Signed-off-by: Russell Troxel <russelltroxel@gmail.com>
2023-03-13 18:59:20 -04:00
pixxon
35835b5650
allow apikey to be set from file (#91) 2023-03-03 23:24:24 -05:00
Russell Troxel
a23d3f1c09
feat(add): Request gzip compression in API calls (#99) 2023-03-03 23:00:12 -05:00
Gavin Mogan
bab8c94e14 Super basic prowlarr support - #35 2022-08-07 14:34:51 -07:00
Devin Buhl
43e6405ec3
fix: better handling of urlBase
Signed-off-by: Devin Buhl <devin@buhl.casa>
2022-03-30 08:11:14 -04:00
Ohad Lutzky
e996f0b201 Add detail about HTTP error messages
* resp.Status includes both the code and the textual description
* If Location is available (i.e. this is a redirect), show it
2022-02-04 22:13:42 +00:00
Devin Buhl
a2a66246bd
fix: double slash on api requests when no urlbase is defined
Signed-off-by: Devin Buhl <devin@buhl.casa>
2021-12-03 09:49:11 -05:00
Devin Buhl
1f5e74f687
fix: clean up login in client 2021-03-17 20:25:05 -04:00
Devin Buhl
09b5af69be
feat: read apikey and urlbase from arr config.xml 2021-03-17 19:25:36 -04:00
Devin Buhl
aaca5e0818
fix: remove basic-auth-enabled flag 2021-03-17 14:54:01 -04:00
kinduff
d1f1fa2ef0 Uses config command name instead of os.Args 2021-03-17 15:16:51 +01:00
kinduff
61537bbbe6 Adds V3/V1 API switch for Lidarr
Im sure theres a better way using the existing config
2021-03-17 00:49:08 +01:00
Devin Buhl
fe0019c383 initial commit 2020-04-12 08:21:46 -04:00