Page 1 of 1

Show posts over X in size but include related posts <X ?

PostPosted: Sat Mar 08, 2003 8:07 pm
by Kegger_CDN
I haven't really looked at newsbin's filters and how they work, but I have suggested before that an option be available in newsbin to allow me to show only posts > X bytes (KB or MB) but, once it recognizes those posts, include ALL related items to that post set, so that files such as NFO, or tiny <X last parts of the post.

So:

Is post > 5MB, yes show post otherwise do not.
Is post shown, yes, include all other posts regardless of size from that set.

So I could see

File A - 10MB
File B - 10MB
File C - 10MB
File D - 1MB
File E - 1K

but, if no parts of 'File' are > 5MB, don't show anything.

Seems, like it would be easy to write some logic for this, but I don't really want to play around with the expressions.

Anyone up to coding a filter to do this?

regards

PostPosted: Mon Mar 10, 2003 12:50 am
by dexter
The RegEx stuff only works on text in the subject line, you can't include file sizes.

PostPosted: Mon Mar 10, 2003 1:31 am
by Kegger_CDN
Well, good thing I didn't try to figure it out then :wink:

So, just lump this into the features request book.

thanks

PostPosted: Wed May 28, 2003 12:51 am
by bnb
I would like to see that as well. It comes in handy for ..par, .nfo files. I sort of like the way newsleecher does it where you can just type in a min or max size easily.

PostPosted: Wed May 28, 2003 1:51 am
by Pyrohydra
If it only works on subject lines, add the size to the subject line.

Great Series Number One [1/24] File.nfo (1/1)
Great Series Number One [2/24] File.part001.rar (1/126)
REQ: CRAPPY FILE I NEED IT NOW PLEEEZE
Great Series Number One [3/24] File.part002.rar (1/126)
.....
Great Series Number One [23/24] File.part024.rar (1/4)
Make $6,000 from $6! Guaranteed to work!
Great Series Number One [24/24] File.part001.par (1/1)

If the file is over [filtersize], add a little-used character to the subject line, say Ψ.

Great Series Number One [1/24] File.nfo (1/1)
Great Series Number One [2/24] File.part001.rar (1/126) Ψ
REQ: CRAPPY FILE I NEED IT NOW PLEEEZE
Great Series Number One [3/24] File.part002.rar (1/126) Ψ
.....
Great Series Number One [23/24] File.part024.rar (1/4)
Make $6,000 from $6! Guaranteed to work!
Great Series Number One [24/24] File.part001.par (1/1)

Create custom filters internally by looking at the lines with the Bigfile mark- in this case, "Great Series Number One". Add that mark to any more matching files.

Great Series Number One [1/24] File.nfo (1/1) Ψ
Great Series Number One [2/24] File.part001.rar (1/126) Ψ
REQ: CRAPPY FILE I NEED IT NOW PLEEEZE
Great Series Number One [3/24] File.part002.rar (1/126) Ψ
.....
Great Series Number One [23/24] File.part024.rar (1/4) Ψ
Make $6,000 from $6! Guaranteed to work!
Great Series Number One [24/24] File.part001.par (1/1) Ψ

Now just show the marked files:
Great Series Number One [1/24] File.nfo (1/1) Ψ
Great Series Number One [2/24] File.part001.rar (1/126) Ψ
Great Series Number One [3/24] File.part002.rar (1/126) Ψ
.....
Great Series Number One [23/24] File.part024.rar (1/4) Ψ
Great Series Number One [24/24] File.part001.par (1/1) Ψ

I don't know a thing about programming, so you can ignore me now. Kegger can figure out the rest. Wait- reverse engineering is illegal, right? You'd have to put a proxy between NB and the server to change the subject lines, that'd be ...
I'm thinking way to hard about this. I'll just say it wouldn't be impossible, just impractical.