From cb9a9b847830508478eb9263291a1e722ab8c9fb Mon Sep 17 00:00:00 2001 From: Rafael Mardojai CM Date: Tue, 19 Dec 2023 17:15:03 -0500 Subject: [PATCH] providers: bing: Save languages names for fallback --- dialect/providers/modules/bing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dialect/providers/modules/bing.py b/dialect/providers/modules/bing.py index 5a58ae94..3893fa57 100644 --- a/dialect/providers/modules/bing.py +++ b/dialect/providers/modules/bing.py @@ -69,7 +69,7 @@ def on_response(data): langs = soup.find('optgroup', {'id': 't_tgtAllLang'}) for child in langs.findChildren(): if child.name == 'option': - self.languages.append(child['value']) + self.add_lang(child['value'], child.contents[0]) # Get IID iid = soup.find('div', {'id': 'rich_tta'})