1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-01-22 16:02:18 +00:00

Introduce singleton API client with retry policy (#130)

* Add singleton http client
* Removed refresh token logic
* Further cleanup after refresh token
* Make tests faster maybe
This commit is contained in:
Adrian Calinescu
2020-05-18 20:34:57 +03:00
committed by GitHub
parent 3cf49c5d1c
commit 2c48d103f2
9 changed files with 753 additions and 344 deletions

View File

@@ -13,7 +13,7 @@ export const enum ERROR_CODE {
INVALID_VIDEO_ID,
INVALID_VIDEO_GUID,
UNK_FFMPEG_ERROR,
NO_SESSION_INFO,
NO_SESSION_INFO
}
// TODO: create better errors descriptions
@@ -43,7 +43,7 @@ export const Error: IError = {
[ERROR_CODE.INVALID_VIDEO_GUID]: 'Unable to get video GUID from URL',
[ERROR_CODE.NO_SESSION_INFO]: 'Could not evaluate sessionInfo on the page'
}
};
export const enum CLI_ERROR {
GRACEFULLY_STOP = ' ', // gracefully stop execution, yargs way