kannibalox / pyrosimple

An overhauled fork of the pyrocore tools for rTorrent
https://kannibalox.github.io/pyrosimple/
GNU General Public License v3.0
48 stars 5 forks source link

pyrotorque extend time symbols not support #9

Closed TMD20 closed 1 year ago

TMD20 commented 1 year ago

I want to make sure I report these before I forget

The original pyrocore had extended time formats like 12H 2W,etc. Currently these do not work on pyrosimple, a work around is to just convert the desire time into seconds.

However these time formats are still present in some of the help outputs

kannibalox commented 1 year ago

Those should still work:

$ rtcontrol loaded\>12h -o loaded -/3
2022-09-17 07:43:15
2022-09-03 20:52:40
2022-09-10 09:18:40
$ rtcontrol loaded\>2w -o loaded -/3
2022-09-03 20:52:40
2022-09-03 21:22:44
2022-09-03 20:58:35
$ rtcontrol loaded\<2w -o loaded -/3
2022-09-17 07:43:15
2022-09-10 09:18:40
2022-09-16 16:05:00

I did however change them to be case sensitive in order to allow for both minutes (m) and months (M).

TMD20 commented 1 year ago

Okay Thanks for clearing that up. I was using some old syntax. With the changes H vs h, now have different results. With only the lowercase letter version working. Capital letters probably only work now in the case in the case of minutes vs months, or similar.

pyrocore handle it a little different. H vs h was parsed as the same thing

In time filtering conditions (e.g. for the completed and loaded fields), you have three possible options to specify the value:

time deltas in the form “<number><unit>...”, where unit is a single upper- or lower-case letter and one of Year, Month, Week, Day, Hour, mInute, or Second. The order is important (y before m), and a + before the delta means older than, while - means younger than.