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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user