Fix error loading feed when device language is Australian English (en_AU)
This commit is contained in:
1 parent
72bf86f376
commit
694cb78947
3 files changed
+7
-10
No files matched your search
+3
-1
@@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
- Nothing worth mentioning yet
|
### Fixed
|
||||||
|
|
||||||
|
- Error loading feed when device language is Australian English (`en_AU`)
|
||||||
|
|
||||||
## [0.40.13] - 2025-08-19
|
## [0.40.13] - 2025-08-19
|
||||||
|
|
||||||
|
|||||||
@@ -182,9 +182,9 @@ namespace Innertube
|
|||||||
|
|
||||||
function GetCurrentLocale(deviceInfo as object) as string
|
function GetCurrentLocale(deviceInfo as object) as string
|
||||||
currentLocale = deviceInfo.GetCurrentLocale()
|
currentLocale = deviceInfo.GetCurrentLocale()
|
||||||
' en_CA is not a valid locale for Innertube
|
' en_CA and en_AU are not valid locales for Innertube
|
||||||
if currentLocale = "en_CA"
|
if currentLocale = "en_CA" or currentLocale = "en_AU"
|
||||||
currentLocale = "en_US"
|
return "en_US"
|
||||||
end if
|
end if
|
||||||
return currentLocale
|
return currentLocale
|
||||||
end function
|
end function
|
||||||
|
|||||||
@@ -54,12 +54,7 @@ namespace Http
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
if keysDict["device"] = true
|
if keysDict["device"] = true
|
||||||
deviceInfo = m.applicationInfoNode@.GetDeviceInfo()
|
state["device"] = m.applicationInfoNode@.GetDeviceInfo()
|
||||||
' We do not currently have translations for en_CA
|
|
||||||
if deviceInfo.current_locale = "en_CA"
|
|
||||||
deviceInfo.current_locale = "en_US"
|
|
||||||
end if
|
|
||||||
state["device"] = deviceInfo
|
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if keysDict["invidious"] = true
|
if keysDict["invidious"] = true
|
||||||
|
|||||||
Reference in new issue
Block a user