Bazarr: TypeError: Object of type Country is not JSON serializable when uploading subtitles

Created on 3 Nov 2020  路  5Comments  路  Source: morpheus65535/bazarr

Describe the bug
When trying to upload subtitles with Bazarr, it errs with TypeError: Object of type Country is not JSON serializable

To Reproduce
Steps to reproduce the behavior:

  1. Add series Filthy Rich (US)
  2. Click on Upload
  3. Add attached srt subtitles (rename TXT to SRT) Filthy.Rich.US.S01E03.720p.WEB.h264-BAE.txt
  4. See error

Expected behavior

It match correctly the subtitles season and episode.

Screenshots

Screenshot_20201103_195130

Screenshot_20201103_195157

Software (please complete the following information):

  • Bazarr Version: 0.9.0.6
  • Sonarr Version: 3.0.4.993
  • Radarr Version: 3.0.0.3978
  • Operating System: Linux-5.8.7-arch1-1-x86_64-with
  • Python Version: 3.8.5
  • Bazarr Directory: /app/bazarr
  • Bazarr Config Directory: /config

Additional context

Tried using a new, clean container, still show the same error.

Logs: bazarr.log

awaiting feedback

Most helpful comment

Sorry for the delay, I've tested with attached subtitle, it now can find the season and episode number correctly, and the import button works.

Thank you!

All 5 comments

And even when I set the season and episode number, the upload button doesn't work at all, see the Javascript error when adding subtitles to upload screen, maybe the javascript error stops the function, which makes the upload button works?

Screenshot_20201103_200027

@LASER-Yi can you take a look at this one please?

@LASER-Yi can you take a look at this one please?

OK I鈥榣l check

Thanks to @LASER-Yi for fixing this issue! Please test and report result.

Sorry for the delay, I've tested with attached subtitle, it now can find the season and episode number correctly, and the import button works.

Thank you!

Was this page helpful?
0 / 5 - 0 ratings