# UI/VIEW: SORT the MAIN view (in view #0) by the LOADED DATE grouped by PRIORITY
branch=pyro.extended=,false=,"view.sort_current = main,greater=d.custom=tm_loaded"
branch=pyro.extended=,"view.sort_current = main,\"compare=-+,d.priority=,d.custom=tm_loaded\""
# Set "pyro.extended" to 1 to activate rTorrent-PS features!
# LEAVE THIS AT 0 IF YOU RUN A VANILLA rTorrent!
method.insert = pyro.extended, value|const, 1
# SORT the MAIN view by DOWNLOADED TIME
# Helper methods to list of main items by the date desc their torrent file was downloaded, Store time when torrent file was downloaded in a custome field (tm_downloaded)
method.insert = d.tm_downloaded,string|simple,"execute.capture=sh,-c,\"echo -n \$(stat -c %Y \\\"$1\\\")\",getDownloadedDate,$d.tied_to_file="
method.insert = d.tm_downloaded.set,simple,"d.custom.set=tm_downloaded,$cat=$d.tm_downloaded=;d.save_full_session="
method.set_key = event.download.inserted_new,set_downloaded_date,"d.tm_downloaded.set="
view.sort_current = main,greater=d.custom=tm_downloaded
d.multicall=,d.tm_downloaded.set=
d.multicall=,d.save_full_session=
# UI/VIEW: SORT the STARTED view by STARTED TIME
view.sort_current = started,greater=d.custom=tm_started
# UI/VIEW: SORT the COMPLETE view by COMPLETED TIME
view.sort_current = complete,greater=d.custom=tm_completed
# UI/VIEW: SORT the SEEDING view (in view #8) by the UPLOAD RATE (grouped by throttle name (e.g. slowup) and only show torrents with peers
# Each group is devided again into subgroups by throttle name (e.g. slowup).
# Within each subgroup, they're sorted by download and then upload speed.
branch=pyro.extended=,false=,"view.sort_current = seeding,greater=d.up.rate="
branch=pyro.extended=,"view.sort_current = seeding,\"compare=+-,d.throttle_name=,d.up.rate=\""
schedule = sort_seeding,12,20,"view.filter = seeding,\"and={d.complete=,d.peers_connected=}\" ;view.sort=seeding"
# UI/VIEW: SORT torrents by DATASIZE (grouped by throttle name (e.g. slowup) and bound to 'i' in rT-PS)
view.add = datasize
branch=pyro.extended=,"view.collapsed.toggle=datasize"
branch=pyro.extended=,false=,"view.sort_current = datasize,greater=d.size_bytes="
branch=pyro.extended=,"view.sort_current = datasize,\"compare=+-,d.throttle_name=,d.size_bytes=\""
view.sort = datasize
branch=pyro.extended=,"schedule = bind_datasize,0,0,\"ui.bind_key=download_list,i,ui.current_view.set=datasize\""