mirror of
https://github.com/snobu/destreamer.git
synced 2026-01-21 15:32:16 +00:00
Merge branch 'aria2c_forRealNow' into patch-1
This commit is contained in:
@@ -44,7 +44,8 @@ Hopefully this doesn't break the end user agreement for Microsoft Stream. Since
|
||||
- **npm**: usually comes with Node.js, type `npm` in your terminal to check for its presence
|
||||
- [**ffmpeg**][ffmpeg]: a recent version (year 2019 or above), in `$PATH` or in the same directory as this README file (project root).
|
||||
- [**git**][git]: one or more npm dependencies require git.
|
||||
- [**aria2**][aria2]: in `$PATH` or in the same directory as this README file (project root).
|
||||
- [**aria2**][aria2]: present in your `$PATH`, on Linux you can install via `sudo apt install aria2`.
|
||||
|
||||
|
||||
Destreamer takes a [honeybadger](https://www.youtube.com/watch?v=4r7wHMg5Yjg) approach towards the OS it's running on. We've successfully tested it on Windows, macOS and Linux.
|
||||
|
||||
|
||||
@@ -34,10 +34,10 @@ export class ApiClient {
|
||||
return true;
|
||||
}
|
||||
logger.warn(`Got HTTP code ${err?.response?.status ?? undefined}. Retrying request...`);
|
||||
logger.verbose('Here is the error message: \n' +
|
||||
logger.warn('Here is the error message: \n' +
|
||||
JSON.stringify(err.response?.data ?? undefined) +
|
||||
'\nRetrying request...');
|
||||
logger.verbose(`We called this URL: ${err.response?.config.baseURL}${err.response?.config.url}`);
|
||||
logger.warn(`We called this URL: ${err.response?.config.baseURL}${err.response?.config.url}`);
|
||||
|
||||
const shouldRetry: boolean = retryCodes.includes(err?.response?.status ?? 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user