Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    PyroScope Project
    @pyroscope
    and it is still php-apcu?
    Harry Collard
    @quom
    yes it is
    Harry Collard
    @quom
    whats the recommended way of running rtorrent in a daemon like mode?
    or started in tmux on startup in the background
    PyroScope Project
    @pyroscope
    pmb has a user sysd unit
    Edvin Basil Samuval
    @edvinbasil_gitlab
    Hey guys. could you help me with this issue I'm having
    I'm having trouble moving completed torrents to another directory by the torrent label.
    It works fine for the most part but when I use a label with '/' in it from rutorrent, it gets escaped as '%2F'.
    for eg, when I have a label as 'TV/2021', it gets moved to a directory 'TV%2F2021'
    1 reply
    Im trying to use string.replace to replace it back with a '/' from the rtorrent.rc. This is what I've come up with
    method.insert = d.get_finished_dir, simple, "cat=/downloads/completed/,(string.replace, $d.custom1=, {%2F, /})"
    but now its not moving it at all. rtorrent starts without errors and there is nothing in the logs as well. any idea whats going on here? Im suspecting that I need to escape the strings in the string.replace but I'm not sure
    PyroScope Project
    @pyroscope
    a) you cannot willy-nilly mix syntax, esp. the inner $ I bet does not work in any way
    b) use my bash-based moving, then such things are sane instead of crazy
    what you must do in all cases is test your pieces, i.e. your d.get... first
    Franklin J Lee
    @Retrockit

    Hi,

    I'm looking to switch over to rtorrent and I want to know where to begin to start my journey

    Andrey
    @moshbear

    I want to use schedule2 to set selinux context on the scgi socket so rutorrent can interact with it. My .rtorrent.rc is presently

    method.insert = cfg.basedir,  private|const|string, (cat,"/home/moshbear/rtorrent/")
    method.insert = cfg.download, private|const|string, (cat,"/home/moshbear/slab/","rtorrent/")
    method.insert = cfg.logs,     private|const|string, (cat,(cfg.basedir),"log/")
    method.insert = cfg.logfile,  private|const|string, (cat,(cfg.logs),"rtorrent-",(system.time),".log")
    method.insert = cfg.rpcfile,  private|const|string, (cat,(cfg.basedir),"rpc.sock")
    method.insert = cfg.session,  private|const|string, (cat,(cfg.basedir),"session/")
    method.insert = cfg.watch,    private|const|string, (cat,(cfg.basedir),"in/")
    
    protocol.encryption.set = allow_incoming,try_outgoing,enable_retry
    
    session.path.set = (cat, (cfg.session))
    directory.default.set = (cat, (cfg.download))
    directory.watch.added = (cat, (cfg.watch)), load.start
    
    log.execute = (cat, (cfg.logs), "execute.log")
    log.xmlrpc = (cat, (cfg.logs), "xmlrpc.log")
    execute.nothrow = sh, -c, (cat, "echo >",\
        (session.path), "rtorrent.pid", " ",(system.pid))
    
    network.scgi.open_local = (cat, (cfg.rpcfile))
    schedule2 = scgi_permission1, 0, 0, (execute.nothrow, sh, -c, (cat, "chcon -t httpd_rw_content \"", (cfg.rpcfile), "\""))
    schedule2 = scgi_permission2, 0, 0, (execute.nothrow, sh, -c, (cat, "chmod \"g+w,o=\" \"", (cfg.rpcfile), "\""))
    
    print = (cat, "Logging to ", (cfg.logfile))
    log.open_file = "log", (cfg.logfile)
    log.add_output = "info", "log"

    rtorrent fails to run with rtorrent: Error in option file: ~/.rtorrent.rc:X: Invalid type passed to command scheduler., where X is the line of the first schedule2. I don't understand the syntax error enough to figure out how to continue

    1 reply
    PyroScope Project
    @pyroscope
    because schedule2 likes a string, you give it the result of your exec call, i.e. 0 or 1
    also, the one line would've sufficed ;)
    look at the official config template and the # of () the watch schedules use
    no-substitute
    @no-substitute:matrix.org
    [m]
    Hey, I use the jobs scheduler, and have run into a conflict. If a torrent is put into the watchdir and loaded, but not started for a while, it later has a message, saying "Inactive: Ghost item - no data". Now, since it now has a non-empty message it will not be started by pyrotorque. Sort of a Catch-22. If it doesn't start it will be considered a ghost item, and if it is a ghost item it will not be started. :-/
    no-substitute
    @no-substitute:matrix.org
    [m]
    Hmmm, found what is setting the "ghost item" message. It's the _cron_rt_invalid_items script.
    I had #-commented out the second to last line (I know I had a reason, but I don't remember, so I actived it again). Removed the message from the stalled torrents and set them to heed commands, and the tourque sprung to life.
    Will monitor what happens in the near future.
    no-substitute
    @no-substitute:matrix.org
    [m]
    That didn't work. If the active download is really slow, but I have several torrents loaded, the rt_invalid script will tag all the inactive torrents as Ghost Items, and then pyrotorque can't start them.
    no-substitute
    @no-substitute:matrix.org
    [m]
    Something that was only loaded, but never started, shouldn't be tagged as a ghost, as it never had a chance to download anything, so whether it actually has any data yet is irrelevant.
    I tried setting the filter to "is_open=yes is_complete=yes is_ghost=yes" but that didn't seem to have any affect.
    no-substitute
    @no-substitute:matrix.org
    [m]
    I wonder if it's the is_ghost=1 and/or is_ghost=0 check that's broken. It shouldn't list (and then tag) torrents that have never been complete as ghosts.
    no-substitute
    @no-substitute:matrix.org
    [m]
    Edited the last line to have that as a filter.
    rtcontrol is_complete=1 message= is_ghost=1 --exec 'message.set="Ghost item - no data"' --yes --cron || :
    PyroScope Project
    @pyroscope
    the proper fix is to change the startable condition
    PyroScope Project
    @pyroscope
    no-substitute
    @no-substitute:matrix.org
    [m]
    Better syntax than my attempt. :-) I actually tried changing the startable, but couldn't figure it out. Will test.
    lemonhead94
    @lemonhead94:matrix.org
    [m]
    Hi all
    Is there a way to check if sonarr / radarr has already processed an rtorrent item?
    In other words how can I be certain that a file has already been moved when using cull 🤔
    rtcontrol alias=sometracker ratio=+1.0 --cull --cron --yes
    PyroScope Project
    @pyroscope
    that depends on your paths and what *arr sets as customs etc
    2 replies
    PyroScope Project
    @pyroscope
    @lemonhead94:matrix.org and generally the best procedure is to hardlink, not move, and then just delete independently
    lemonhead94
    @lemonhead94:matrix.org
    [m]
    i have a mergerfs setup with rclone so hardlinking won't work in this case..
    lemonhead94
    @lemonhead94:matrix.org
    [m]
    i just discovered that sonarrs latest build now has a "Post-Import Category" when enabling advanced settings, which lets you set a custom category after importing
    just what i needed 😇
    Nathan Jones
    @jonesnc
    Does anyone here know how to escape special characters in rtorrent's rpc API when calling one of the load methods? I'm getting an error when the directory of the torrent contains an è, but when I remove the è character it works fine.
    PyroScope Project
    @pyroscope
    just use utf8
    or rtxmlrpc, which does
    unless u r on a mac, then things are just crazy
    Nathan Jones
    @jonesnc
    thanks, i'll look into that. i'm on ubuntu server.
    Nathan Jones
    @jonesnc
    i'm working in python and tried calling .encode('utf-8') on the directory string, but that didn't do it
    Nathan Jones
    @jonesnc
    i'll see if i can get rtxmlrpc to work
    Nathan Jones
    @jonesnc
    @pyroscope I'm still working on this utf-8 issue. I can confirm I'm definitely encoding the request in utf-8. I'm communicating with rtorrent over the scgi socket. If I sent you the raw XML request I'm sending to rtorrent, and any other details you request from me, do you think you could help me resolve this issue? I'm 99% sure that it's the presence of a è character in the directory_base value, because doing the exact same thing with directories without the è character do not raise the same error.
    Nathan Jones
    @jonesnc
    The call actually seems to be working, it adds the torrent with the correct directory_base path. It's just that I don't get any response from the socket, and get a ConnectionResetError: [Errno 104] Connection reset by peer error in my Python code.
    Nathan Jones
    @jonesnc
    Made some progress troubleshooting. Running lstor on the torrent file I'm working with, I see this:
    WARNING: Bad encoding(s) UNKNOWN/EXOTIC in these fields: file path, info name
    The character causing this is: \u0303
    Nathan Jones
    @jonesnc
    I can reproduce the issue with rtxmlrpc. Should I open an issue?
    Nathan Jones
    @jonesnc
    Nevermind. I eventually found the correct place in my code to call .encode('utf-8'), and that fixed my problem.
    sunyibo
    @dorsch:gnugen.ch
    [m]
    hi! https://github.com/rtorrent-community/rtorrent-docs/blob/master/docs/examples/completion-path.sh I can't get this to work. I don't know how to include my default target directory. Can someone help, please?
    Mirko G.
    @H4Z4RD-H42
    help me please.. i can't find the right command in rtorrent-docs.readthedocs.io
    https://0bin.net/paste/3+fUiM+V#XL-H4vHqMq9l+I97RAn90JFCFHTDm8lkOp8+yiPPXFJ