mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-18 22:33:42 +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") {
|
uri.scheme == "https") {
|
||||||
path = uri.toString();
|
path = uri.toString();
|
||||||
} else if (uri.scheme == "file") {
|
} 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 {
|
} else {
|
||||||
path = (await toFile(uri.toString())).path;
|
path = (await toFile(uri.toString())).path;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user