Fix english but non-US site being forced to default US site#23
Fix english but non-US site being forced to default US site#23jmeosbn wants to merge 4 commits intomacr0dev:masterfrom
Conversation
|
To clarify, passing
then, Which overwrites base with Presumably, same will happen if wanting to use |
|
I'll be back home on Tuesday and can run some thorough tests to see what's going on here. The initial international support based on library language was done by another developer and I wrapped the option to manually select it around that code. I'm working on a laptop in a different U.S. state than usual due to holiday traveling. |
|
Yes, I think that line must either be a duplication error, or remnant from some history where non-US-but-still-english sites were not added. Commenting that single line seems to be all that's required, will probably rebase on latest to fix merge conflict on current head. |
1ec50dd to
86b851d
Compare
de8c18f to
81c7fcd
Compare
|
After refactoring of the parameter localisation stuff into UK:
US:
However, initial library refresh still seems to skip updating despite matching 100% - it actually [edit: I've committed changes that seem to have resolved this issue) |
| @@ -31,78 +31,73 @@ def json_decode(output): | |||
| THREAD_MAX = 20 | |||
|
|
|||
| intl_sites={ | |||
There was a problem hiding this comment.
I think intl_sites could be removed and a search in sites_langs used instead?
a0ea30b to
3b3e459
Compare
3b3e459 to
5380fb9
Compare
Contents/Code/__init__.py
Outdated
| urlsearchtitle = "advsearchKeywords=" | ||
| else: | ||
| # fallback for .com title search outside US | ||
| urlsearchtitle += "{0}&searchTitle=" |
There was a problem hiding this comment.
A little inelegant but it's a one line fix vs. something more drastic! 😱
|
Added fallback workaround for
|
4acd871 to
0faa20d
Compare
|
Looks like the However, it doesn't hurt to have it and it provides a fallback that could simplify things going forward. edit: switches back and forth so best keep it in.. |
fad3bb1 to
079457c
Compare
079457c to
8adacfd
Compare
8adacfd to
7e19570
Compare
|
note: additional commits pruned back as I'm unable to keep stale PRs from conflicting between each other and my current local copy |
e8a1f8c to
7e19570
Compare
Hi there, just some minor fixes noted when selecting the UK audible site - main one is that .com is always used (see first line that's repeated from earlier in def).