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

TypeError: the JSON object must be str, not 'bytes' #33

Open
g4570n opened this issue Apr 11, 2021 · 0 comments
Open

TypeError: the JSON object must be str, not 'bytes' #33

g4570n opened this issue Apr 11, 2021 · 0 comments

Comments

@g4570n
Copy link

g4570n commented Apr 11, 2021

Hi, I have the latest version of the script and I get this error in the terminal:

[sponsorblock] Traceback (most recent call last):
[sponsorblock]   File "/home/g4570n/.config/mpv/scripts/sponsorblock_shared/sponsorblock.py", line 34, in <module>
[sponsorblock]     segments = json.load(response)
[sponsorblock]   File "/usr/lib/python3.5/json/__init__.py", line 268, in load
[sponsorblock]     parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
[sponsorblock]   File "/usr/lib/python3.5/json/__init__.py", line 312, in loads
[sponsorblock]     s.__class__.__name__))
[sponsorblock] TypeError: the JSON object must be str, not 'bytes'

I have these versions installed:

mpv 0.23.0
Python 3.5.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant