-
Notifications
You must be signed in to change notification settings - Fork 65
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
Fix english but non-US site being forced to default US site #23
base: master
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
@@ -102,12 +102,15 @@ def SetupUrls(sitetype, base, lang='en'): | |||
# Match titles using more flexible keyword search | |||
if Prefs['keyword_searching']: | |||
urlsearchtitle = "advsearchKeywords=" | |||
else: | |||
# fallback for .com title search outside US | |||
urlsearchtitle += "{0}&searchTitle=" |
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.
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
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.
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).