chore: disable legacy audio proxy and hide audio controls
This commit is contained in:
1 parent
4e52cab88e
commit
dae0d525c7
4 files changed
+21
-90
No files matched your search
+4
-7
@@ -46,7 +46,7 @@ async def fetch_wiktionary_wikitext(word: str) -> Dict[str, Any]:
|
||||
|
||||
return {
|
||||
"ipa": ipa_cleaned,
|
||||
"audio": audio_matches,
|
||||
"audio": [],
|
||||
"ru_translations": ru_cleaned
|
||||
}
|
||||
except Exception:
|
||||
@@ -232,12 +232,9 @@ async def lookup_term(query: str) -> Dict[str, Any]:
|
||||
elif d_muse.get("ipa"):
|
||||
result["phonetic"] = d_muse["ipa"]
|
||||
|
||||
# 2. Audio URL / File
|
||||
if free_dict.get("audio_url"):
|
||||
result["audio_url"] = free_dict["audio_url"]
|
||||
elif w_wiki.get("audio"):
|
||||
result["audio_file"] = w_wiki["audio"][0]
|
||||
result["audio_url"] = f"/api/audio?file={urllib.parse.quote(result['audio_file'])}"
|
||||
# 2. Audio URL / File (Disabled)
|
||||
result["audio_file"] = ""
|
||||
result["audio_url"] = ""
|
||||
|
||||
# 3. Part of Speech
|
||||
if w_defs.get("parts_of_speech"):
|
||||
|
||||
Reference in new issue
Block a user