did imagefap change their file naming organization

swgoldwing
Posts: 10
Joined: 26 Apr 2019, 21:19

Re: did imagefap change their file naming organization

Post by swgoldwing » 05 Dec 2019, 16:31

Works great!
Tho 3.46 install throws issues from Windows Defender & Norton..
Thanks again

Maxim
Site Admin
Posts: 1154
Joined: 02 Mar 2009, 17:02

Re: did imagefap change their file naming organization

Post by Maxim » 05 Dec 2019, 16:39

Windows always reacts like that on a new version. But after a couple of thousands of successful installations it changes its mind. As for the Norton - bad for them because it's a false positive.

iamanepfuser
Posts: 6
Joined: 29 Mar 2019, 21:17

Re: did imagefap change their file naming organization

Post by iamanepfuser » 05 Dec 2019, 23:39

Thanks for the fix/update. But I've found a problem. When I try and download a user's folder (imagefap.com - all galleries from a folder in user profile), EPF will download the first gallery and then stop. If I restart, it will redownload the first gallery duplicating pics and stop. It won't proceed to the next/other galleries.

edit: Figured I better throw in I'm using EPF 3.46 and updated IF templates

swgoldwing
Posts: 10
Joined: 26 Apr 2019, 21:19

Re: did imagefap change their file naming organization

Post by swgoldwing » 06 Dec 2019, 00:23

...
I see (now) that the naming is based on the 'alt' tag on the image anchor/link .. that value contains extraneous (add'l) info before the simple original file name.

is there any way to pull/use the title tag from the page containing the anchor/link (not the title tag on the anchor/link.. but the containing page)

this seems to be consistently containing the original file name.

thanks

Maxim
Site Admin
Posts: 1154
Joined: 02 Mar 2009, 17:02

Re: did imagefap change their file naming organization

Post by Maxim » 06 Dec 2019, 12:37

But the title tag from the full-size image page contains even more extra info than the alt or title attribute from the <img...> tag... Here is the template of the alt attribute text:

GALLARY_NAME - ORIGINAL_FILE_NAME

And here is the template of the full-size image page title tag text:

ORIGINAL_FILE_NAME Porn Pic From GALLERY_NAME Sex Image Gallery

So using the alt or title attribute value from the img tag is way better in my opinion.

Sometimes when you create an imagefap project from the gallery template - full file name of the saved files (the default EPF download folder plus project folder name plus sub-folder name (which is gallery ID plus gallery title) plus file name created from the alt or title attribute) becomes too long for Windows which allows only 255 characters in file names. In this case the file name is truncated to fit the limit.

But you can easily avoid it by using something like this:

C:\EPF\

as a default EPF download folder plus manually adjusting the default suggested folder name when you create a project (simply click Next button several times after pasting the gallery URL).

And finally the answer to your question: yes, you can use page title to create a file name. In the project properties select [ Save -> Naming ] section, then click the [ Expert ] tab, select the [ Use title of the parent page... ] option and use the following Regular Expression:

\.com/photo/\d+/

Image

swgoldwing
Posts: 10
Joined: 26 Apr 2019, 21:19

Re: did imagefap change their file naming organization

Post by swgoldwing » 06 Dec 2019, 17:27

You're probably right re 'extraneous-ness' (a technical term no doubt!) of the page's title tag.. but it was easier to scrape the file name from the beginning of the string vs the end (as is the case of the title/alt on the link/anchor) .. and i wasn't sure about potential truncating of the title/alt in the link/anchor based on the gallery name..
So, i won't disagree with your choice.

another related question.. since I've been perusing the template modification screens.. how is the target folder name created.. i've noticed 2 different formats, based on the starting url..

if the url is a gallery url - eg., https://www.imagefap.com/gallery.php?gid=8471279
the target folder is: www.imagefap.com - gallery [gid-8471279]

if the url is the redirected name - eg., https://www.imagefap.com/pictures/84712 ... al-art-241
the target folder is: www.imagefap.com - pictures-8471279 - Erotic-toons-and-digital-art-241

the difference of "gallery [gid-8471279]" vs "pictures-8471279" was a bit annoying to parse in the detecting the difference.
Not a big deal.. more of just a question of where the format was constructed.

Thanks for you responsiveness and thoroughness in replies.

Maxim
Site Admin
Posts: 1154
Joined: 02 Mar 2009, 17:02

Re: did imagefap change their file naming organization

Post by Maxim » 06 Dec 2019, 17:51

I think you're talking about the project "Destination folder" here. This folder name is generated in the [ Create New Project ] window using the first Starting URL. Basically EPF just removes from the URL characters that are not allowed in Windows file/folder names. This folder can easily be changed manually either in the [ Create New Project ] window or in the project properties.

But imagefap templates also provide a way to automatically generate sub-folders for every gallery. The format of the generated sub-folder name is

GALLERY_ID - GALLERY_TITLE

This can only be changed in the project properties, [ Naming -> Sub-folders ] section by modifying the Regular Expression or the Result.

Post Reply