Downthemall filter for exclude some name files

Talk about add-ons and extension development.
Locked
ikhwan21
Posts: 4
Joined: November 2nd, 2016, 9:02 pm

Downthemall filter for exclude some name files

Post by ikhwan21 »

Hello,
I have trouble when create filter on DTA (Downthemall)
I have many picture that I want to download.
for example:
wonderful-mountain.jpg
wonderful-mountain-150x150.jpg
wonderful-mountain-300x250.jpg
wonderful-mountain-820x600.jpg

Is there a way to download just wonderful-mountain.jpg?

Thank you so much for your help. :)
morat
Posts: 6405
Joined: February 3rd, 2009, 6:29 pm

Re: Downthemall filter for exclude some name files

Post by morat »

Try a fast filter like so:

Code: Select all

/[^0]\.jpg$/
Similar thread: http://forums.mozillazine.org/viewtopic ... &t=2700131
ikhwan21
Posts: 4
Joined: November 2nd, 2016, 9:02 pm

Re: Downthemall filter for exclude some name files

Post by ikhwan21 »

morat wrote:Try a fast filter like so:

Code: Select all

/[^0]\.jpg$/
Similar thread: http://forums.mozillazine.org/viewtopic ... &t=2700131
Thanks for your help. But isn't work. some file that i don't want to download still includes.
in my case:
wonderful-mountain.jpg
wonderful-mountain-150x150.jpg
wonderful-mountain-300x250.jpg
wonderful-mountain-820x600.jpg

while I using

Code: Select all

/[^0]\.jpg$/
be like this:

wonderful-mountain.jpg
wonderful-mountain-150x150.jpg
wonderful-mountain-300x250.jpg

still have 2 images that I don't want to download.

I have try with

Code: Select all

/[^150][^300][^820]\.jp(e?g|e|2)$/i


but isn't work too

I have reading from similar thread. But I don't understand.
Thank you for your help :)
morat
Posts: 6405
Joined: February 3rd, 2009, 6:29 pm

Re: Downthemall filter for exclude some name files

Post by morat »

It works for me.

Fast Filtering:

Code: Select all

/^Nice-Wonderful-Mountain\.jpg$/
[check] Disable other filters

Test page
http://jattdisite.com/wp-content/uploads/2015/08/

DownThemAll! 3.0.8
Firefox 49.0.2
Windows 7 SP1 32-bit
ikhwan21
Posts: 4
Joined: November 2nd, 2016, 9:02 pm

Re: Downthemall filter for exclude some name files

Post by ikhwan21 »

Code: Select all

/^Nice-Wonderful-Mountain\.jpg$/
[check] Disable other filters

yes it's work if just want to download some file like this:
Nice-Wonderful-Mountain.jpg
Nice-Wonderful-Mountain-150x100.jpg
Nice-Wonderful-Mountain-300x150.jpg

but in the case many files with different names, like this:
http://www.ismforyachts.com/wp-content/uploads/2016/01/

and I just want to download all files without 150x....jpg, 300x....jpg, 768x....jpg

The filters isn't works. Some file with 300x....jpg still includes.

Code: Select all

/[^0]\.jpg$/
I'am using
DownThemAll! 3.0.8
Firefox 49.0.2
Windows 10 64-bit

Thank You :)
morat
Posts: 6405
Joined: February 3rd, 2009, 6:29 pm

Re: Downthemall filter for exclude some name files

Post by morat »

ikhwan21 wrote:download all files without 150x....jpg, 300x....jpg, 768x....jpg
Try this:

Code: Select all

/[^137][^056][^08][^x]...\.jpg$/
ikhwan21
Posts: 4
Joined: November 2nd, 2016, 9:02 pm

Re: Downthemall filter for exclude some name files

Post by ikhwan21 »

Code: Select all

/[^137][^056][^08][^x]...\.jpg$/
Nice! it's work :)

Thank you so much :)
Locked