mpv_sponsorblock icon indicating copy to clipboard operation
mpv_sponsorblock copied to clipboard

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

Open g4570n opened this issue 3 years ago • 0 comments

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

g4570n avatar Apr 11 '21 02:04 g4570n