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

Filename to save #293

Open
wankio opened this issue Oct 1, 2022 · 2 comments
Open

Filename to save #293

wankio opened this issue Oct 1, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@wankio
Copy link

wankio commented Oct 1, 2022

%source% - URL of the source.

Can it removed https:// and https:// from url and create folder structure like

https://github.com/danny0838/webscrapbook/issues/
to
github.com/danny0838/webscrapbook/issues

because %source% only transform special character into _

@danny0838
Copy link
Owner

We probably won't make a change to the current behavior, but may consider providing more placeholders like %source-pathname% etc. as SingleFile does.

@danny0838 danny0838 added the enhancement New feature or request label Oct 5, 2022
@danny0838
Copy link
Owner

v1.5.0 has added support of more placeholders like %source-pathname% to get the pathname. However, currently the value of any placeholder will be escaped to be safe in a filename. Adding support of /s from a placeholder breaks backward compatibility and consistency with currently available placeholders (such as %title%), and needs further investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants