Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,3 +305,4 @@ Project Link: [https://github.com/opsdisk/yagooglesearch](https://github.com/ops
* [KennBro](https://github.com/KennBro) - <https://github.com/opsdisk/yagooglesearch/pull/9>
* [ArshansGithub](https://github.com/ArshansGithub) - <https://github.com/opsdisk/yagooglesearch/pull/21>
* [pguridi](https://github.com/pguridi) - <https://github.com/opsdisk/yagooglesearch/pull/38>
* [libenc](https://github.com/libenc) - <https://github.com/opsdisk/yagooglesearch/pull/42>
8 changes: 6 additions & 2 deletions src/yagooglesearch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# Custom Python libraries.


__version__ = "1.9.0"
__version__ = "1.10.0"

# Logging
ROOT_LOGGER = logging.getLogger("yagooglesearch")
Expand Down Expand Up @@ -144,7 +144,11 @@ def __init__(
self.query = urllib.parse.quote_plus(query)
self.tld = tld
self.lang_html_ui = lang_html_ui
self.lang_result = lang_result.lower()
self.lang_result = (
lang_result.lower()
if "-" not in lang_result
else f"{lang_result.split('-')[0].lower()}-{lang_result.split('-')[1].upper()}"
)
self.tbs = tbs
self.safe = safe
self.start = start
Expand Down