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

Bug with KnowIt in Medusa #43

Closed
andrelx opened this issue Jun 9, 2022 · 1 comment
Closed

Bug with KnowIt in Medusa #43

andrelx opened this issue Jun 9, 2022 · 1 comment

Comments

@andrelx
Copy link

andrelx commented Jun 9, 2022

2022-06-09 02:06:48 WARNING SHOWQUEUE-REFRESH :: [ad2c7ad] An error occurred while parsing: /share/Video/SickBeard/Black Mirror/Season 02/Black.Mirror.S02E04.mp4
KnowIt reported:
+-------------------------------------------------------+
| KnowIt 0.4.0 |
+-------------------------------------------------------+
| pymediainfo |
| |
| mediainfo |
| v0.7.87 |
| |
| |
| |
| enzyme |
| 0.4.2 |
+-------------------------------------------------------+
| profile: default |
+-------------------------------------------------------+
Traceback (most recent call last):
File "/share/CACHEDEV1_DATA/.qpkg/Medusa/Medusa/ext/knowit/api.py", line 59, in know
result = provider.describe(video_path, context)
File "/share/CACHEDEV1_DATA/.qpkg/Medusa/Medusa/ext/knowit/providers/mediainfo.py", line 284, in describe
data = self.executor.extract_info(video_path)
File "/share/CACHEDEV1_DATA/.qpkg/Medusa/Medusa/ext/knowit/providers/mediainfo.py", line 91, in extract_info
return self._execute(filename)
File "/share/CACHEDEV1_DATA/.qpkg/Medusa/Medusa/ext/knowit/providers/mediainfo.py", line 124, in _execute
return json.loads(check_output([self.location, '--Output=JSON', '--Full', filename]).decode())
File "/share/CACHEDEV1_DATA/.qpkg/QPython3/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/share/CACHEDEV1_DATA/.qpkg/QPython3/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/share/CACHEDEV1_DATA/.qpkg/QPython3/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

+-------------------------------------------------------+
| Please report any bug or feature request at |
| https://github.com/ratoaq2/knowit/issues. |
+-------------------------------------------------------+

@MatthK
Copy link

MatthK commented Jun 17, 2022

I have the same (or similar) problem in Medusa with a bunch of errors on this show (but no other shows). And it only shows the errors in 3 seasons, while another 3 seasons seem to be fine.

+-------------------------------------------------------+
|      Please report any bug or feature request at      |
|       https://github.com/ratoaq2/knowit/issues.       |
+-------------------------------------------------------+
2022-06-17 03:02:09 WARNING  SHOWQUEUE-REFRESH :: [6313f26] An error occurred while parsing: /mnt/shares/movies/TV Shows/Die Rosenheim-Cops/Season 17/Die Rosenheim-Cops - S17E10 -.mp4
KnowIt reported:
+-------------------------------------------------------+
|                     KnowIt 0.4.0                      |
+-------------------------------------------------------+
|                      pymediainfo                      |
|                                                       |
|                   libmediainfo.so.0                   |
|                        v17.12                         |
|                                                       |
|                        ffprobe                        |
|                  v3.4.11-0ubuntu0.1                   |
|                                                       |
|                                                       |
|                        enzyme                         |
|                         0.4.2                         |
+-------------------------------------------------------+
|                   profile: default                    |
+-------------------------------------------------------+
Traceback (most recent call last):
  File "/opt/medusa/ext/knowit/api.py", line 59, in know
    result = provider.describe(video_path, context)
  File "/opt/medusa/ext/knowit/providers/mediainfo.py", line 284, in describe
    data = self.executor.extract_info(video_path)
  File "/opt/medusa/ext/knowit/providers/mediainfo.py", line 91, in extract_info
    return self._execute(filename)
  File "/opt/medusa/ext/knowit/providers/mediainfo.py", line 157, in _execute
    return json.loads(MediaInfo.parse(filename, library_file=self.location, output='JSON'))
  File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

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

2 participants