feat: video download

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-11-06 12:12:32 +08:00
parent 976622df89
commit ffd4f9ee73
92 changed files with 4853 additions and 946 deletions

View File

@@ -254,6 +254,14 @@ extension FileExt on File {
}
}
extension DirectoryExt on Directory {
Future<void> tryDel({bool recursive = false}) async {
try {
await delete(recursive: recursive);
} catch (_) {}
}
}
extension SizeExt on Size {
bool get isPortrait => width < 600 || height >= width;
}