-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
amazon parser: store all product details #2316
Conversation
b44056d
to
d2ad65d
Compare
I am not going to commit to maintaining parsing of metadata from amazon that calibre doesnt use. As for the rest of your fixes, I cant see how any of them are relevant, or even correct. For example, the ISO 639-2 standard code for german is both deu and ger. So why prefer ger? Why special case formatting of zero times in isoformat? And doing so means yur datetime becomes naive losing timezone information. Why change Authors(s) to Authors? |
The rating is correct already. Source plugins are supposed to return values on a scale of 10, they get normalized by other code in the pipeline. I have merged the audiobooks one, thanks. |
fails in at least 2 cases also 35b409a to avoid exceptions |
On Sun, Jun 23, 2024 at 06:10:13AM -0700, milahu wrote:
> The rating is correct already.
fails in at least 2 cases
https://www.amazon.de/-/en/dp/B086GX5SNN
Gives me a rating of 4.5 as expected, running via command line.
https://www.amazon.de/-/en/dp/3954714493
also 35b409a to avoid exceptions
What exception does that avoid?
|
no, rating should be 4.7 * 2 = 9.4 of 10 https://www.amazon.de/-/en/dp/B086GX5SNN
with calibre master with 518b921 and a5fdcb3 ... or rating should be renamed to stars ... or all ratings should be 5-based to make it consistent
im calling
|
also a2bbd55 |
On Sun, Jun 23, 2024 at 06:50:33AM -0700, milahu wrote:
> Gives me a rating of 4.5 as expected
no, rating should be 4.7 * 2 = 9.4 of 10
No its an *integer* between 0 and 10. Which in this case is 9 int(9.4).
And 9 becomes an effective rating of 4.5
|
its confusing when "rating" can be 5-based or 10-based
|
i needed a generic amazon parser to get all product details
so these are now stored in
mi._details
also fixed some other stuff, probably not all will be merged
example use