]> git.phdru.name Git - extfs.d.git/commitdiff
Refactor(torrent): Use `name` directly
authorOleg Broytman <phd@phdru.name>
Fri, 11 Aug 2023 19:48:48 +0000 (22:48 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 13 Aug 2023 13:08:27 +0000 (16:08 +0300)
torrent

diff --git a/torrent b/torrent
index 1a3c2c17b302266296dc6bf1ac833d7d94bb1beb..0e396ee4b3f38fc4fd14ab00655060f891c3380e 100755 (executable)
--- a/torrent
+++ b/torrent
@@ -126,8 +126,7 @@ def mctorrent_list():
                 if name_utf8:
                     path = '/'.join([name_utf8] + file['path.utf-8'])
                 else:
-                    _name_utf8 = name
-                    path = '/'.join([_name_utf8] + file['path.utf-8'])
+                    path = '/'.join([name] + file['path.utf-8'])
             else:
                 if name_utf8:
                     path = '/'.join([name_utf8] + path)