croot / nekopaw

Automatically exported from code.google.com/p/nekopaw
1 stars 0 forks source link

How to make it name folders like grabber 1.0? #232

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I used your grabber 1.0 exclusively for exhentai, it was very important to me 
that I could just download everything to the same directory and it would 
automatically skip if a folder already existed.  
The way it made those directories was, let's assume I download galleries with 
the following names: 
"GalleryA", "GalleryB", "GalleryC".  
This would result in:  
downloader\GalleryA\ (images inside this folder)
downloader\GalleryB\ (images inside this folder)
downloader\GalleryC\ (images inside this folder)

I read the name formating wiki entry but I couldn't come up with a variable 
that pulls the gallery name.  
$fname$ << that's just the filename of the image files, not the gallery
$rname$ << just the website name
$tag$   << just what I entered, for example the gallery URL or the tags 
those are all the ones that were close to gallery name.  

Original issue reported on code.google.com by confri...@gmail.com on 18 Aug 2014 at 8:28

GoogleCodeExporter commented 9 years ago
Also, (doesn't seem like I can edit my post)  
in the GUI for naming stuff there are 2 buttons, one button labeled 
"$variable[:format]$" and one button labeled "%field[:format]%".
Clicking the first one opens a list with available options, clicking the second 
one does nothing.  
It appears that gallery name might be available if the list for the second 
button appeared, so it probably exists, but it's not listed in the wiki?

Original comment by confri...@gmail.com on 18 Aug 2014 at 8:51

GoogleCodeExporter commented 9 years ago
I see.
So you moved from graber1 to graber2?
Graber1 was quite primitive, and all variables was predefined. In Graber2 every 
resource can have a different amount of fields, that's why predefined and 
resource related variables was separated.
In format editor you can see $variable$ and %field% menus. Tags isolated by "$" 
symbol are predefined, and exist for every resource. Tags with "%" symbol are 
resource related, i.e. "image fields", gathered during downloading, and may or 
may not exist for different resources.
Using format editor you can see accessable picture fields. As example, for 
g.e-hentai you can use tag %album% to get album's name.
Basically, what you wanna use is 

downloader\<%album%\>

"<>" is tag isolator, that will hide everything inside it if isolated tags 
doesn't exist for current picture.

Original comment by catgirlfighter on 19 Aug 2014 at 8:49

GoogleCodeExporter commented 9 years ago

Original comment by catgirlfighter on 22 Aug 2014 at 1:21