mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 08:28:39 +00:00
Fix loading torrent files in Windows when the path is non-ascii
This commit is contained in:
parent
3c4b511e6b
commit
5b8f9f29b8
1 changed files with 3 additions and 0 deletions
|
@ -175,6 +175,9 @@ class AddTorrentDialog(component.Component):
|
||||||
new_row = None
|
new_row = None
|
||||||
|
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
|
# Convert the path to unicode
|
||||||
|
filename = unicode(filename)
|
||||||
|
|
||||||
# Get the torrent data from the torrent file
|
# Get the torrent data from the torrent file
|
||||||
try:
|
try:
|
||||||
info = deluge.ui.common.TorrentInfo(filename)
|
info = deluge.ui.common.TorrentInfo(filename)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue