mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-29 12:38:34 +00:00
feat: video download
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -10,6 +10,9 @@ class RetryInterceptor extends Interceptor {
|
||||
|
||||
@override
|
||||
void onError(DioException err, ErrorInterceptorHandler handler) {
|
||||
if (err.requestOptions.responseType == ResponseType.stream) {
|
||||
return handler.next(err);
|
||||
}
|
||||
if (err.response != null) {
|
||||
final options = err.requestOptions;
|
||||
if (options.followRedirects && options.maxRedirects > 0) {
|
||||
|
||||
Reference in New Issue
Block a user