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

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

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

Postby Kegger_CDN » Sat Mar 08, 2003 8:07 pm

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
User avatar
Kegger_CDN
Canadian Extraordinaire
Canadian Extraordinaire
 
Posts: 2286
Joined: Fri Jun 14, 2002 8:52 pm
Location: The big State called Canada

Registered Newsbin User since: 03/13/00

Postby dexter » Mon Mar 10, 2003 12:50 am

The RegEx stuff only works on text in the subject line, you can't include file sizes.
User avatar
dexter
Site Admin
Site Admin
 
Posts: 9511
Joined: Fri May 18, 2001 3:50 pm
Location: Northern Virginia, US

Registered Newsbin User since: 10/24/97

Postby Kegger_CDN » Mon Mar 10, 2003 1:31 am

Well, good thing I didn't try to figure it out then :wink:

So, just lump this into the features request book.

thanks
User avatar
Kegger_CDN
Canadian Extraordinaire
Canadian Extraordinaire
 
Posts: 2286
Joined: Fri Jun 14, 2002 8:52 pm
Location: The big State called Canada

Registered Newsbin User since: 03/13/00

Postby bnb » Wed May 28, 2003 12:51 am

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.
bnb
Occasional Contributor
Occasional Contributor
 
Posts: 16
Joined: Sat May 24, 2003 4:11 pm

Registered Newsbin User since: 05/24/03

Postby Pyrohydra » Wed May 28, 2003 1:51 am

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.
User avatar
Pyrohydra
Elite NewsBin User
Elite NewsBin User
 
Posts: 2653
Joined: Fri Nov 15, 2002 3:26 am
Location: Ohio

Registered Newsbin User since: 03/27/03


Return to Regular Expressions

Who is online

Users browsing this forum: No registered users and 2 guests