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

[Feature Request] Capture multiple fields #160

Closed
hkmaly opened this issue Jan 18, 2021 · 2 comments
Closed

[Feature Request] Capture multiple fields #160

hkmaly opened this issue Jan 18, 2021 · 2 comments

Comments

@hkmaly
Copy link

hkmaly commented Jan 18, 2021

Would it be possible to capture multiple fields, that is for example set capture to filename,sourceurl and then match parts of both filename and sourceurl and combine them in target name?

If it's already possible, could it be documented with example?

Something like

filename: (.*)(:|_)large
sourceurl: https?://([^/]*)
capture: filename,sourceurl
into: :$2:-:$1:.:extension:

which would store cat_large.jpg from domain twitter.com as twitter.com-cat.jpg

@gyng
Copy link
Owner

gyng commented Jun 13, 2021

Not at the moment, but would be a cool feature to have!

gyng added a commit that referenced this issue Mar 18, 2022
gyng added a commit that referenced this issue Mar 19, 2022
gyng added a commit that referenced this issue Mar 19, 2022
* Add tests and documentation for #160

* Bump version to 3.6.0
@gyng
Copy link
Owner

gyng commented Mar 19, 2022

Released in v3.6.0.

capture: filename,sourceurl

@gyng gyng closed this as completed Mar 19, 2022
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

2 participants