Skip to content

Commit

Permalink
perf: run lyrics search and parsing in isolate
Browse files Browse the repository at this point in the history
+ dio is now dropped
  • Loading branch information
MSOB7YY committed May 14, 2024
1 parent bd3bf05 commit 7a63a6e
Show file tree
Hide file tree
Showing 6 changed files with 230 additions and 125 deletions.
2 changes: 1 addition & 1 deletion lib/controller/current_color.dart
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ class CurrentColor {
_printie("Color Read From File");
return nc;
} else {
await paletteFile.deleteIfExists();
await paletteFile.delete().catchError((_) => File(''));
}
}

Expand Down
3 changes: 0 additions & 3 deletions lib/controller/ffmpeg_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import 'dart:async';
import 'dart:convert';
import 'dart:io';

import 'package:dio/dio.dart';
import 'package:ffmpeg_kit_flutter_min/ffmpeg_kit.dart';
import 'package:ffmpeg_kit_flutter_min/ffmpeg_kit_config.dart';
import 'package:ffmpeg_kit_flutter_min/ffprobe_kit.dart';
Expand Down Expand Up @@ -253,7 +252,6 @@ class NamidaFFMPEG {
Future<void> fixYTDLPBigThumbnailSize({required List<String> directoriesPaths, bool recursive = true}) async {
if (!await requestManageStoragePermission()) return;

final dio = Dio();
final allFiles = <FileSystemEntity>[];
int remainingDirsLength = directoriesPaths.length;
final completer = Completer<void>();
Expand Down Expand Up @@ -310,7 +308,6 @@ class NamidaFFMPEG {
);
}
}
dio.close(force: true);
currentOperations[OperationType.ytdlpThumbnailFix]!.value.currentFilePath = null;
}

Expand Down
Loading

0 comments on commit 7a63a6e

Please sign in to comment.