Name of the enforced locale (en_US.UTF-8) is adjusted to work on macOS.
This commit is contained in:
parent
55965940d3
commit
6a979ad9c2
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ class YTMusic(BrowsingMixin, WatchMixin, LibraryMixin, PlaylistsMixin, UploadsMi
|
||||||
locale.setlocale(locale.LC_ALL, language)
|
locale.setlocale(locale.LC_ALL, language)
|
||||||
except locale.Error:
|
except locale.Error:
|
||||||
with suppress(locale.Error):
|
with suppress(locale.Error):
|
||||||
locale.setlocale(locale.LC_ALL, 'en_US.UTF8')
|
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
|
||||||
self.lang = gettext.translation('base',
|
self.lang = gettext.translation('base',
|
||||||
localedir=pkg_resources.resource_filename(
|
localedir=pkg_resources.resource_filename(
|
||||||
'ytmusicapi', 'locales'),
|
'ytmusicapi', 'locales'),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue