Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BAZARR unable to index external subtitles: 'charmap' codec can't decode... character maps to <undefined> #2196

Closed
vin047 opened this issue Jul 6, 2023 · 2 comments

Comments

@vin047
Copy link

vin047 commented Jul 6, 2023

Describe the bug
Getting this issue with a specific file when doing a disk scan. The subtitle file was generated using Bazarr's embedded subtitle provider.

|BAZARR unable to index external subtitles
...
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 34309: character maps to <undefined>|

To Reproduce
Steps to reproduce the behavior:

  1. Configure Bazarr to only use the embedded subtitle provider.
  2. Wanted -> Movies -> Search All
  3. After generating the srt file, the above error is present in the logs.
  4. Doing disk scans trigger the error when it reaches said file.

Expected behavior
Generated srt file is valid and bazarr doesn't report an issue when scanning/decoding it.

Software (please complete the following information):

  • Bazarr: 1.2.2
  • Radarr version: 4.5.2.7388
  • Sonarr version: 3.0.10.1567
  • OS: Linux, Debian 11 (LXC container)

Additional context
Seen a few other threads mentioned with similar error. I believe i've set up locale properly though.

$ python3 -c "import sys; print(sys.getdefaultencoding())"
utf-8
$ locale
LANG=C
LANGUAGE=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
$ locale -a
C
C.UTF-8
POSIX
en_US.utf8

Attached relevant section of debug log after initiating scan. Also attached the srt file (that was generated using the embedded subtitle provider) which is giving the error.
bazarr.log
subtitle.zip

morpheus65535 added a commit that referenced this issue Jul 7, 2023
@morpheus65535
Copy link
Owner

Should be fixed in upcoming beta. Can you confirm?

@vin047
Copy link
Author

vin047 commented Jul 14, 2023

Tested with the latest stable release (v1.2.3), looks like its working. Thanks!

@vin047 vin047 closed this as completed Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants