tr-cht-fx-242p / transmission-leechermod

Leecher mod for the Transmission BitTorrent client. Get binaries from the releases. The seperate release branches will no be updated, just the main leechermod_2.77+_2.84+ branch.
3 stars 1 forks source link

torrent-rename-path RPC support #4

Open Farbdose opened 8 years ago

Farbdose commented 8 years ago

Would it be possible to add the torrent-rename-path function from the current RPC specs to the project?

Files of interest: transmission-leechermod/transmission-277+-cfp-git-MOD/Linux-source/libtransmission/rpcimpl.c

would need: torrentRenamePathDone, torrentRenamePath, new entry in method list


transmission-leechermod/transmission-277+-cfp-git-MOD/Linux-source/qt/session.cc

would need: TAG_RENAME_PATH torrentRenamePath A new case in parse response


transmission-leechermod/transmission-277+-cfp-git-MOD/Linux-source/qt/session.cc

would need: a new header entry


transmission-leechermod/transmission-277+-cfp-git-MOD/Linux-source/qt/session.cc

would need: a new event and a handler


If i find some time i can hack a patch together ... its just that I speak zero C++


Original Transmission Repo - not the github mirror

tr-cht-fx-242p commented 8 years ago

@Farbdose I put an update but the rename implement of official is shit...

https://trac.transmissionbt.com/changeset/13807 and a few directly following commits show it. But there's a load of bugs and complaints about it https://trac.transmissionbt.com/ticket/1220#comment:121 and all everywhere else on the site. I won't do it or any of the crap of 2.9x either.

If you want to fork source for linux or windows from this/my stuff I'd take a look. The way official does it is use the file indexes, put in the resume file for the torrent that maps to the original metadata structured named. No verify for consistency, duplicates messed up pathnames or nothing, leaves it prone to crashes, hash fail overwrites and .... what a mess.

But go ahead, wtf and put the source and patch, I'd look and test a little, maybe.