Post AYJ2Sfxli16Rx3QLey by aj@social.dunevent.net
 (DIR) More posts by aj@social.dunevent.net
 (DIR) Post #AYIvr5paU5t9S0IFKy by aj@social.dunevent.net
       2023-08-02T01:07:16.289Z
       
       0 likes, 0 repeats
       
       I'm really proud of this silly little script I wrote to automatically clean out old torrents from Transmission based on a customizable share ratio and/or seeding time.The bones were someone else's work (published in a forum post without a license attached) but I really fleshed it out.I plan on finding some way to share it.  I don't want to use Github, I don't want to set up an account anywhere, and I don't want to host my own git stuff... so it might just be a blog post or something lame.  I also am not a skilled Bash script writer so hopefully no one makes fun of me when I do.
       
 (DIR) Post #AYJ2SfEkPP5fhQMOUC by Greg@social.coop
       2023-08-02T01:14:51Z
       
       0 likes, 0 repeats
       
       @aj I would be very interested in it.
       
 (DIR) Post #AYJ2Sfxli16Rx3QLey by aj@social.dunevent.net
       2023-08-02T02:21:15.925Z
       
       0 likes, 0 repeats
       
       @Greg@social.coopHopefully there isn't anything too embarrassing in there:https://dunevent.net/~aj/transmission-cleaner.tar.xzFeedback/improvements welcome!  I'm sure I am not following best practices, etc.  I did try to comment profusely, though, so.License is the very liberal but little known "I found parts of the code on a forum so I'm not sure I can really dictate the terms of the license but absolutely use and/or alter my contributions all you want for any purpose you want and it would be cool but not required if I got a little attribution and I would prefer any derivative works be licensed similarly permissively" license.
       
 (DIR) Post #AYKsF6xTvwReOe6RaC by Greg@social.coop
       2023-08-02T03:41:00Z
       
       1 likes, 0 repeats
       
       @aj the little known but most widely used license, indeed.Thanks! I'll take a look soon!
       
 (DIR) Post #AYKsFFU2EnEopvOYQy by Greg@social.coop
       2023-08-02T05:52:05Z
       
       1 likes, 0 repeats
       
       @aj Poking through it and I'm wondering if I can extend it to vary based on tracker (private vs public, mostly).
       
 (DIR) Post #AYKwQNnM4ipPcHzq4G by aj@social.dunevent.net
       2023-08-03T00:23:04.201Z
       
       0 likes, 0 repeats
       
       @Greg@social.coop If you add the following into the main do loop, it'll tell you if it is one of the two private trackers I mostly use or not:  # Get tracker  TRKCHK=$BIN -t $ID -i | grep "Magnet:"  if [[ $TRKCHK == *"td.jumbohostpro.eu"* ]] || [[ $TRKCHK == *"sync.td-peers.com"* ]]; then    TRACKER="TorrentDay"  elif [[ $TRKCHK == *"127.0.0.1.stackoverflow.tech"* ]] || [[ $TRKCHK == *"async.empirehost.me"* ]] || [[ $TRKCHK == *"routing.bgp.technology"* ]]; then    TRACKER="IPTorrents"  else    TRACKER="Unknown"  fi
       
 (DIR) Post #AYKwqR0ekK4Z7DdlWC by aj@social.dunevent.net
       2023-08-03T00:27:46.516Z
       
       0 likes, 0 repeats
       
       @Greg@social.coop From there, though, you have to decide if you're going to have a MAXSEEDTIME and MAXRATIO for each private tracker plus one for public trackers or just one for all private trackers and one for public trackers or what.  That's part of the reason I didn't implement it.  I couldn't figure out what would be most useful to people and how I could keep setting up the conf file easy.
       
 (DIR) Post #AYKyPDPbOT7d25SPPU by aj@social.dunevent.net
       2023-08-03T00:45:15.624Z
       
       0 likes, 0 repeats
       
       @Greg@social.coop conf could ask for a comma separated list of magnet identifiers for private trackers.A for loop could check them all against the magnet info provided by transmission for each torrent.Any hits would exit the loop with a positive for private.  If the loop ends without finding any, assume public.Then there'd only need to be a PUBLICMAXRATIO, PUBLICMAXSEEDTIME, PRIVATEMAXRATIO, and PRIVATEMAXSEEDTIME.I really could probably implement that this weekend since my fiance is going out of town so I'll have lots of opportunities to hyperfixate on something.
       
 (DIR) Post #AYRefsZEHgOX7CiNG4 by aj@social.dunevent.net
       2023-08-06T06:07:09.295Z
       
       0 likes, 0 repeats
       
       @Greg@social.coop As predicted, I was able to dive back into this today.New features:* Set different maximum ratios and seeding times based on whether a torrent is from a public or private tracker.* Max ratios can now have decimals* Max seed times can now be set in weeks, days, hours, minutes, or secondshttps://dunevent.net/~aj/transmission-cleaner.tar.xz
       
 (DIR) Post #AYSRDun3JyyjegTYQq by Greg@social.coop
       2023-08-06T15:04:43Z
       
       1 likes, 0 repeats
       
       @aj sweet! I'll take a look later!