Name sub-folder

Maksym
Site Admin
Posts: 2077
Joined: 02 Mar 2009, 17:02

Re: Name sub-folder

Post by Maksym » 20 Oct 2017, 13:53

Well, here is the Regular Expression for this kind of pages:

boards\.4chan\.org/[^/]+/thread/\d+

kaosnews
Posts: 20
Joined: 21 Sep 2017, 15:38

Re: Name sub-folder

Post by kaosnews » 23 Oct 2017, 00:18

Yes much better! Now the images are saved in directories named by the name of the threads.

kaosnews
Posts: 20
Joined: 21 Sep 2017, 15:38

Re: Name sub-folder

Post by kaosnews » 23 Oct 2017, 09:29

@Maxim is it possible to tackle the 'problem' with the "/" symbol in the title? So if the title is this:

Title site/with more text/and more

You get:
- Title site
-- with more text
---- and more

I understand why this is :) but it would be nice if you can replace internally in the program that / is renamed a space (I can understand that sometimes this can be handy, so maybe optional?)

Maksym
Site Admin
Posts: 2077
Joined: 02 Mar 2009, 17:02

Re: Name sub-folder

Post by Maksym » 23 Oct 2017, 13:55

You just need more complex Regular Expression. Like this:

Title site/with more text/and more

Expression: ([^/+])/([^/+])/([^/]+)
Result: [#1]-[#2]-[#3]

Thus you'll replace "/" with "-". You can use space or any other character instead of "-".

Trin
Posts: 1
Joined: 29 Mar 2018, 18:04

Re: Name sub-folder

Post by Trin » 29 Mar 2018, 18:16

Can someone please explain to me how to use the title field in the header for naming the sub folder? So use as the first poster asked for example

<title>Forest Adventure</title>

To name the sub-folder "Forest Adventure"

Do I use the option in "Save - Sub-folders - Advanced" to achieve this? And if so what do I put in for the regular expression?

I seem to be pretty slow at this so an example would be nice.

Thank you in advance for any help.

Maksym
Site Admin
Posts: 2077
Joined: 02 Mar 2009, 17:02

Re: Name sub-folder

Post by Maksym » 30 Mar 2018, 13:53

It's not that hard in most cases. You basically need to enter here common part of URLs which Titles will be used to create sub-folders. Examples:

1. All pages with images are in the same sub-folder on server:

example.com/folder_name/some-page.html
example.com/folder_name/another.html
...
example.com/folder_name/third.html

The common part of all of the above URLs is folder_name and that's what you have to enter into the field. Regular Expression can have no special characters at all and in this case URLs matched directly symbol by symbol, just like in this example.

2. Common part in URL parameters:

example.com?something=anything
example.com?something=nothing
example.com?something=againsomething

Here you can use something= to match all necessary URLs. Extreme Picture Finder will take Titles of matched URLs to create sub-folders.

If you give me your actual URLs - I'll help you create the Regular Expression you need and will try to explain it.

Post Reply