Skip to content
Discussion options

You must be logged in to vote

Ok, I managed to accomplish what I wanted.
I forgot to tell that I wrote this plugin for rTorrent 0.9.6 and ruTorrent 0.13.6 (this is what I get from seedbox).
Here is the code for init.js

if(plugin.canChangeMenu())
{
  plugin.createMenu = theWebUI.createMenu;
  theWebUI.createMenu = function( e, id )
  {
    plugin.createMenu.call(this, e, id);
    if(plugin.enabled && id && id.length == 40)
    {
      plugin.uID = id;
      theContextMenu.add( ["Fix Added Time", "theWebUI.perform('fix_addtime_request_action')"] );
    }
  }

  rTorrentStub.prototype.fix_addtime_request_action = function() {
    // console.log(`fix_addtime_request_action: ${plugin.uID}`);
    if (plugin.uID && plugin.uI…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by darko1979
Comment options

You must be logged in to vote
1 reply
@darko1979
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants