-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fetchart: Option to download all defined sources and choose the biggest one #3262
Comments
Interesting idea! Seems like a reasonable thing to add. |
With respect to not respecting About the |
Hmm, that’s true. Upon more careful reflection, I’m not sure what the desired behavior would be here—if not |
@wisp3rwind I think I mixed concepts here since I was importing like 12 albums and refining my yaml configuration at the same time and I'm sorry about that. The situation that I wrote in the Use Case is actually impossible: if you set This is what happens: it downloads from every source and since the image it's too small, it's discarded:
What actually happened that made me create this confusion: in So my use case was wrong, but the motivation is the same: a
The system just downloads everything and chooses the image with the higher size, using the same logic that was used to discard the small ones like I put here in the log: if someone sets the Problem: the order in |
@sampsyo would it be the case to change the name of this issue from
to
? |
Yep sounds good! |
I'm still not sure whether I understand the intended behaviour fully: Are you referring to fetchart's action during and import process, or when run as I'd like to propose a somewhat different remedy, maybe you could comment on whether that would fix your usecase? Then I might actually go about implementing this. Consider the following amended fetchart config: fetchart:
minwidth: 1024
enforce_ratio: yes
fallback:
minwidth: 500
enforce_ratio: 5% fetchart could interpret this in the following way:
An alternative config syntax could be fetchart:
minwidth: [1024, 500]
enforce_ratio: [yes, 5%] The reasoning behind this (more complicated?) approach is that I'm not convinced that always downloading all of the art is worth the bandwidth (and is also not very nice towards the backend providers I guess). I absolutely do see the need to have more graceful fallbacks though. fetchart:
minwidth: 100000
fallback:
minwidth: 1024
enforce_ratio: yes Opinions? Is this overkill? |
Use case
I have a
minwidth
of 1024 forfetchart
plugin.source
priority is filesystem.My
cover.jpg
image in filesystem is 500x500. Because of that, it tries to get a better picture using thefetchart
plugin.Problem is: the fetched image is 300x300. In this situation, since the fetched image is
worse
than my filesystem image, I would prefer to use it instead of the downloaded one.Solution
I would like to have a better approach, but don't know exactly what to do:
download_all
that tries to get the image from all sources, and chooses the best one? This is a completely new development of the fetchart feature;fallback_worse_fetched_ratio
, that uses the filesystemcover.jpg
instead of the fetched image if the downloaded resource has a worse ratio.Alternatives
Today is a manual approach.
The text was updated successfully, but these errors were encountered: