Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] using label in blogger directory #2930

Closed
afterdelight opened this issue Sep 18, 2022 · 4 comments
Closed

[QUESTION] using label in blogger directory #2930

afterdelight opened this issue Sep 18, 2022 · 4 comments

Comments

@afterdelight
Copy link

afterdelight commented Sep 18, 2022

command:
gallery-dl blogger:https://idol.gravureprincess.date/search/label/AKB48

config:

"blogger": {	
	 "directory": ["{blog[name]}","{post[labels]}","({post[date]:%Y-%m-%d}) {post[title]}"],
	 "filename":"{filename}.{extension}",
         "videos": true
     }

results:
Idol. gravureprincess .date\['AKB48', 'FLASH', 'Kashiwagi Yuki 柏木由紀']\(2022-09-18) Kashiwagi Yuki 柏木由紀, FLASH 2022.09.27 (フラッシュ 2022年9月27日号)

how to grab only 'AKB48' label instead of all labels?

i want to make my directory like this:
Idol. gravureprincess .date\AKB48\['AKB48', 'FLASH', 'Kashiwagi Yuki 柏木由紀']\(2022-09-18) Kashiwagi Yuki 柏木由紀, FLASH 2022.09.27 (フラッシュ 2022年9月27日号)

@Hrxn
Copy link
Contributor

Hrxn commented Sep 19, 2022

By using the element index ({post[labels][n]})?

e.g. "directory": ["{blog[name]}","{post[labels][0]}","{post[labels]}","({post[date]:%Y-%m-%d}) {post[title]}"]

@afterdelight
Copy link
Author

afterdelight commented Sep 19, 2022

yeah it works but for post like this, it will grab the wrong label and not NMB48 label
https://idol.gravureprincess.date/2022/09/kawakami-chihiro-jonishi-rei-hongo.html

need to find a way to grab the label directly from label search 'https://idol.gravureprincess.date/search/label/NMB48'

@afterdelight
Copy link
Author

well this temp fix works well in windows:

command

for /F "tokens=*" %%x in (label.txt) do (
	if not exist idol.gravureprincess.date\%%x mkdir idol.gravureprincess.date\%%x
	cd %cd%\idol.gravureprincess.date\%%x
	echo.
	echo Downloading label %%x..
	gallery-dl blogger:https://idol.gravureprincess.date/search/label/%%x --download-archive %%x.sqlite3
)

config:

"blogger":
        {	
			"directory": ["{post[title]}"],
			"filename":"{filename}.{extension}",
            "videos": true
        }

mikf added a commit that referenced this issue Sep 20, 2022
for '/search/label/…' or '/search?q=…' URLs
@afterdelight
Copy link
Author

afterdelight commented Sep 20, 2022

Thanks for enhancements!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants