Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to rename individual files and other renaming improvements. #347

Open
Kanjirito opened this issue Jan 30, 2022 · 3 comments
Open

Comments

@Kanjirito
Copy link

Unless I'm missing something there currently is no way to rename a individual file or sub-directory in a torrent. You can rename the main file/directory but not the files in the torrent. I propose adding a context menu with a rename button in the "Files" tab that would open a pop-up window (like the one for setting torrent labels or changing location) to change the name.

Some other quality of life changes relating to this I'd like to see:

  • A pop-up window when renaming the main file/directory of a torrent. That way you can press cancel to prevent the change without needing to close the details window. (And maybe also a context menu with a rename button for it in addition to the double click)
  • A rename button in the context menu in the torrent list view.
  • A details button in the context menu in the torrent list view because double clicking a torrent to get to that window is not super intuitive (at least for me)
@johman10
Copy link
Owner

Hi, sorry for the super late reply. Haven't had a chance to have a proper look at this until now.

I was looking into this a little and it seems like Transmission doesn't really support this in any way. The documentation for the API lives here: https://github.com/transmission/transmission/blob/main/docs/rpc-spec.md. If you know of a UI that does this or a way to do this, please let me know. Until then I'm closing this issue, but will reopen it if it's possible after all.

Thanks for your suggestion either way! :D

@Kanjirito
Copy link
Author

transgui can definitely rename individual files. It seems to do it through torrent-rename-path the same way flood does it for the main file/directory. From what I understand the second argument path can be any file from that torrent but it needs to be a relative path from the "root" of the torrent. So lets say we are downloading a torrent that contains a directory named Music with files Song 1.mp3 and Song 2.mp3. To rename Song 1.mp3 we would make a request like this

{
  "method": "torrent-rename-path",
  "arguments": {
    "ids": 1,
    "path": "Music/Song 1.mp3",
    "name": "New name.mp3"
  }
}

I have confirmed that this does in fact work even for files a couple of directories deep. Should be easy enough to implement.

@johman10 johman10 reopened this Apr 30, 2022
@ThinkChaos
Copy link

I agree this would be a great addition. I unfortunately am not good with UI/frontend so cannot contribute it myself.

transmission-remote-gtk supports it, also via torrent-rename-path: transmission-remote-gtk/transmission-remote-gtk#109

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants