ratoaq2 / knowit

Know better your media files
MIT License
29 stars 5 forks source link

Bug with KnowIt in Medusa #43

Closed andrelx closed 1 year ago

andrelx commented 2 years ago
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 commented 2 years ago

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)