diff --git a/lib/services/download.dart b/lib/services/download.dart index a0600eb..536cc02 100644 --- a/lib/services/download.dart +++ b/lib/services/download.dart @@ -119,14 +119,22 @@ class DLServices { await shell.run(''' $ytDlpPath $command ''').then((result) { - debugPrint('Analyse error: $result'); - - FileLogger().d('Analyse result: ${result.toString()}'); + result.map((e) { + debugPrint('Analyse result: $e'); + FileLogger().d('Analyse result: ${e.toString()}'); + FileLogger().d('stdout: ${e.stdout}'); + FileLogger().d('stderr: ${e.stderr}'); + }); }).catchError(( error, stackTrace, ) { - FileLogger().e('Analyse error: $error'); + error.map((e) { + debugPrint('Analyse result: $e'); + FileLogger().d('Analyse result: ${e.toString()}'); + FileLogger().d('stdout: ${e.stdout}'); + FileLogger().d('stderr: ${e.stderr}'); + }); }); return shellLinesController.stream; diff --git a/lib/videoList/cubit/videos_cubit.dart b/lib/videoList/cubit/videos_cubit.dart index 2736fab..3fab52e 100644 --- a/lib/videoList/cubit/videos_cubit.dart +++ b/lib/videoList/cubit/videos_cubit.dart @@ -112,6 +112,7 @@ class VideosCubit extends Cubit { } Future moveVideos() async { + debugPrint('Moving videos to download folder'); final prefs = await SharedPreferences.getInstance(); Directory defaultDownloadDirectory = await getDownloadDirectory(); prefs.get('downloadFolder') ??