Bug 208493 - Rename local files in torrent
Summary: Rename local files in torrent
Status: RESOLVED FIXED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-25 13:02 UTC by Alexey Shildyakov
Modified: 2024-03-15 17:32 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Shildyakov 2009-09-25 13:02:51 UTC
Version:           3.2.3 (using KDE 4.3.1)
Installed from:    Gentoo Packages

We can modify directories and files names before downloading. But how to rename files after/during downloading? We can move it to another folder but cannot modify.

The good if we can rename files from "Files" tab in Info window. By double clicking with pause (first click, pause some time, second click), or from context menu (add entry "Rename" to the list ..."Dont load", "Delete file(s)", insert_here, "Move file"...), and maybe rename by click F2 key (if file is selected).
Comment 1 G360 2011-08-04 22:21:44 UTC
*** This bug has been confirmed by popular vote. ***
Comment 2 G360 2011-08-04 22:43:29 UTC
It would be very useful to have these feature, because right now, it has to be done in the torrent opening dialog, before downloading. I think if the feature to move the data to another folder exists, then why not an option to also rename the files? It is useful to continue seeding the file, and at the same time, to have it ordered in the hard drive.


As a workaround it can be done manually with some care:

Quit KTorrent
rename/move the files,
edit ~/.kde/share/apps/ktorrent/torXX/file_map
Sart KTorrent

where XX is the number that correspond to the torrent you want to edit. You can find it with:
grep related_words_from_the_torrent_name ~/.kde/share/apps/ktorrent/tor*/stats

Source: http://ktorrent.org/forum/viewtopic.php?f=1&t=3171
Comment 3 Alexey Shildyakov 2011-08-05 06:50:52 UTC
Author (Joris Guisson) said to me that the problem is to rename files without stop seeding. Now it's possible to do this by steps:
1. Stop seeding torrent
2. Rename/move (are the same actions) files
3. Start seeding torrent

I think, it will be good to implement in that case and maybe after will improve to do those actions without stopping torrent. What do you think Joris?
Comment 4 Brallan Aguilar 2014-12-27 21:56:34 UTC
Hi. Is there any news?
Comment 5 Bug Janitor Service 2024-02-29 15:53:24 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/ktorrent/-/merge_requests/113
Comment 6 Andrius Štikonas 2024-03-15 17:32:54 UTC
Git commit d1c2a0f26aac53bf9089df2937b0b540b2d679a8 by Andrius Štikonas, on behalf of George Florea Bănuș.
Committed on 15/03/2024 at 17:31.
Pushed by stikonas into branch 'master'.

infowidget: add context menu action to rename files

M  +4    -1    libktcore/torrent/torrentfiletreemodel.cpp
M  +3    -1    libktcore/torrent/torrentfiletreemodel.h
M  +24   -0    plugins/infowidget/fileview.cpp
M  +2    -0    plugins/infowidget/fileview.h
M  +42   -0    plugins/infowidget/iwfilelistmodel.cpp
M  +16   -0    plugins/infowidget/iwfiletreemodel.cpp
M  +1    -0    plugins/infowidget/iwfiletreemodel.h

https://invent.kde.org/network/ktorrent/-/commit/d1c2a0f26aac53bf9089df2937b0b540b2d679a8