-
Notifications
You must be signed in to change notification settings - Fork 38
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] Multi-Language Support #50
Conversation
found some flaws... I will get back working on this... |
some background to better understand the changes in the code (I find this quite helpful since we all only know our "own" amazon pages...): From the code I assume that for amazon.com/.uk the orders overview look something like this with the For amazon.de the page is different, since In the code I added an additional per-domain flag, indicating if the It would be great if someone with a |
self.regular = regular | ||
self.digital = digital if digital is not None else default_digital | ||
self.digital_orders_menu = digital if digital is not None else self.domain.digital_orders_menu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I renamed this to make it more clear that is does not toggle the download of digital invoices in all cases (only for .com!). It's basically a flag which says if there is a separate digital orders list on the amazon website or not.
I updated the PR to include the upstream changes to the Amazon source and cleaned up the history. It would be great if someone could have a look at it! @Zburatorul you appear to be most involved at the moment? If there is no interest in merging this here, just tell me. I will maintain it in my own fork then. |
awesome! thanks @jbms ! |
@Marvin182, @moritzj29, thanks for the contributions and for getting this over the line! |
@moritzj29, there's a bug for digital orders on line 471. Undefined variable. |
Oh sorry, |
# different labels are possible e.g. for regular orders vs. Amazon fresh | ||
if invoice_link.text != "": | ||
# log non-empty link texts -> may be new type | ||
logger.info( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, can you turn this into a logger.debug instead please. It prints on every single order and pollutes the screen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, sure
Hello,
I took PR #48 by @Marvin182 and addressed the comments of @Zburatorul from the code review to make this very valuable contribution mergeable:
orderID
I tested this with my amazon.de account and
it works very well. All credit goes out to @Marvin182 for implementing this in the first place!I'm happy for your comments!
PS: I'm also working on the corresponding
beancount-import
module over here: jbms/beancount-import#144