File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -305,3 +305,4 @@ Project Link: [https://github.com/opsdisk/yagooglesearch](https://github.com/ops
305
305
* [ KennBro] ( https://github.com/KennBro ) - < https://github.com/opsdisk/yagooglesearch/pull/9 >
306
306
* [ ArshansGithub] ( https://github.com/ArshansGithub ) - < https://github.com/opsdisk/yagooglesearch/pull/21 >
307
307
* [ pguridi] ( https://github.com/pguridi ) - < https://github.com/opsdisk/yagooglesearch/pull/38 >
308
+ * [ libenc] ( https://github.com/libenc ) - < https://github.com/opsdisk/yagooglesearch/pull/42 >
Original file line number Diff line number Diff line change 14
14
# Custom Python libraries.
15
15
16
16
17
- __version__ = "1.9 .0"
17
+ __version__ = "1.10 .0"
18
18
19
19
# Logging
20
20
ROOT_LOGGER = logging .getLogger ("yagooglesearch" )
@@ -144,7 +144,11 @@ def __init__(
144
144
self .query = urllib .parse .quote_plus (query )
145
145
self .tld = tld
146
146
self .lang_html_ui = lang_html_ui
147
- self .lang_result = lang_result .lower ()
147
+ self .lang_result = (
148
+ lang_result .lower ()
149
+ if "-" not in lang_result
150
+ else f"{ lang_result .split ('-' )[0 ].lower ()} -{ lang_result .split ('-' )[1 ].upper ()} "
151
+ )
148
152
self .tbs = tbs
149
153
self .safe = safe
150
154
self .start = start
You can’t perform that action at this time.
0 commit comments