Skip to content

KyleSanderson/upgraderr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

upgraderr

http://upgraderr.upgraderr:6940/api/upgrade

{ "host":"http://qbittorrent.cat:8080",
  "user":"zees",
  "password":"bsmom",
  "name":"{{ .TorrentName | js }}" }
  • Possible returns
    • 200 unique
    • 250 cross
  • Informational returns
    • 201-208

http://upgraderr.upgraderr:6940/api/cross

{  "host":"http://qbittorrent.cat:8080",
   "user":"zees",
   "password":"bsmom",
   "name":"{{ .TorrentName | js }}",
   "hash":"{{ .TorrentHash }}",
   "torrent":"{{ .TorrentDataRawBytes | js }}" }
  • Possible returns
    • 200 ok
  • Error returns
    • 400-499

Experimental endpoints below

http://upgraderr.upgraderr:6940/api/clean

{ "host":"http://qbittorrent.cat:8080",
  "user":"zees",
  "password":"bsmom" }
  • Possible returns
    • 200 ok
    • 205 nothing to remove
  • Error returns
    • 400-499

http://upgraderr.upgraderr:6940/api/unregistered

{ "host":"http://qbittorrent.cat:8080",
  "user":"zees",
  "password":"bsmom" }
  • Possible returns
    • 200 ok
  • Error returns
    • 400-499

http://upgraderr.upgraderr:6940/api/autobrr/filterupdate

{ "host":"http://qbittorrent.cat:8080",
  "user":"zees",
  "password":"bsmom",
  "autobrrhost":"http://autobrr.autobrr:7474", 
  "apikey":"YnNtb21pc3RoZWJlc3Q=",
  "filterid":69 }
  • Possible returns
    • 200 ok
  • Error returns
    • 400-499

http://upgraderr.upgraderr:6940/api/expression

{ "host":"http://qbittorrent.cat:8080",
  "user":"zees",
  "password":"bsmom",
  "action":"start",
  "query":"LastActivity != 0 && State(State) == 'stalledUP' && Now() - LastActivity > 800 && ((SeedingTime > 7776 && (NumComplete > 12 || NumIncomplete > 9)) || (SeedingTime > 10368 && (NumComplete + NumIncomplete >  8)))"
 }
{ "host":"http://qbittorrent.cat:8080",
  "user":"zees",
  "password":"bsmom",
  "action":"reannounce",
  "query":"DisableCrossseed() && State(State) in ['stalledDL', 'forcedDL', 'downloading'] && NumLeechs + NumSeeds < 3"
 }
{ "host":"http://qbittorrent.cat:8080",
  "user":"zees",
  "password":"bsmom",
  "query":"LastActivity > 604800 && ResultSkip(4000) && ResultLimit(10) && State(State) in ['stalledUP'] && NumLeechs + NumSeeds > 3 && SpaceAvailable('/') < 1024*1024*1024*200",
  "sort":"-CompletionOn"
 }
{ "host":"http://qbittorrent.cat:8080",
  "user":"zees",
  "password":"bsmom",
  "action":"tagadd",
  "subject":"dageraad",
  "query":"DisableCrossseed() && State(State) == 'downloading' && Tags not contains 'forkedRiver' && NumLeechs + NumSeeds > 7"
 }
  • Possible returns
    • 200 ok
  • Error returns
    • 400-499
  • Language documentation
  • Specifiers available
  • Actions available
    • delete, deletedata, forcestart, normalstart, start, pause, reannounce, recheck, test (default)
  • Actions with Subjects
    • category, tagadd, tagdel
  • Sort
    • Higher values come first
  • Custom script functions
    • Now()
      • Unix timestamp
    • State(State)
      • Converts the torrent state to a string
    • ContextGet()
      • Retrieve a persisted string across a single run
    • ContextSet(string)
      • Set a persisted string across a single run
    • DisableCrossseed()
      • Naive matching
    • ResultLimit(int)
      • Limits results to process after the classification and (optional) ResultSkip stage
    • ResultMinimumCount(int)
      • Minimum amount of results to proceed with, after the classification stage, but before limit and skip
    • ResultSkip(int)
      • Skips a defined number of results, leaving the remainder to be processed after the classification stage
    • SpaceAvailable('/my/path'), SpaceFree('/my/path'), SpaceTotal('/my/path'), SpaceUsed('/my/path')
      • Returns bytes from each respective function
    • TitleParse(string)
    • TitleParsed()
      • Parses the present title, to return fields found in moistari/rls