mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-07 00:50:27 +00:00
fix: can not open url encode torrent file path (#945)
This commit is contained in:
1 file changed
+2
-1
@@ -359,7 +359,8 @@ class AppController extends GetxController with WindowListener, TrayListener {
|
||||
uri.scheme == "https") {
|
||||
path = uri.toString();
|
||||
} else if (uri.scheme == "file") {
|
||||
path = Util.isWindows() ? uri.path.substring(1) : uri.path;
|
||||
path =
|
||||
Util.isWindows() ? Uri.decodeFull(uri.path.substring(1)) : uri.path;
|
||||
} else {
|
||||
path = (await toFile(uri.toString())).path;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user