Comments (4)
Maybe make priority settings by source indices? something like priority = [6, 5]
Then index 6 in the results will be the first and 5 the second
from pysaucenao.
Additionally we should probably consider adding a flag to disable this behavior in init. Something like priority_mode = True
or so.
from pysaucenao.
Reconsidering whether we should actually do this in this library or leave it to the applications using this logic to handle this.
from pysaucenao.
@FeeeeK Yeah I was thinking of doing something just like that.
My hesitation is when doing this, you probably want to balance similarity in there too.
So, if you have something that's a 90% match on Pixiv for example, but has a 55% match on Anime, you probably don't want to prioritize the anime result due to the vastly lower similarity rating.
Could maybe add another argument to handle the maximum percentage difference to accept when prioritizing results (e.g. only prioritize anime results if it's within 10% similarity of the highest rated result).
I think that would work actually. Just need to figure out a good name for that paremeter that easily conveys what it does, lol.
Maybe priority_tolerance = 10.0
or so.
from pysaucenao.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pysaucenao.