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

addon-check fails to read http://mirrors.kodi.tv/addons/nexus/addons.xml.gz #272

Closed
ReenigneArcher opened this issue May 22, 2024 · 2 comments

Comments

@ReenigneArcher
Copy link

Since, approximately 2 weeks ago, this addon-check tool cannot read the above mentioned xml file.

I guess it's likely that the format of the file was modified, but it is rendering this checker useless.

The read is occurring here.

if path.endswith('.gz'):
with gzip.open(BytesIO(content), 'rb') as xml_file:
content = xml_file.read()

Traceback (most recent call last):
  File "C:\Users\ReenigneArcher\.pyenv\pyenv-win\versions\3.8.10\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\ReenigneArcher\.pyenv\pyenv-win\versions\3.8.10\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\ReenigneArcher\Documents\GitHub\LizardByte\Themerr-kodi\venv\Scripts\kodi-addon-checker.exe\__main__.py", line 7, in <module>
  File "C:\Users\ReenigneArcher\Documents\GitHub\LizardByte\Themerr-kodi\venv\lib\site-packages\kodi_addon_checker\__main__.py", line 86, in main
    all_repo_addons = check_addon.get_all_repo_addons()
  File "C:\Users\ReenigneArcher\Documents\GitHub\LizardByte\Themerr-kodi\venv\lib\site-packages\kodi_addon_checker\check_addon.py", line 133, in get_all_repo_addons
    repo_addons[branch] = Repository(branch, branch_url)
  File "C:\Users\ReenigneArcher\Documents\GitHub\LizardByte\Themerr-kodi\venv\lib\site-packages\kodi_addon_checker\addons\Repository.py", line 36, in __init__
    content = xml_file.read()
  File "C:\Users\ReenigneArcher\.pyenv\pyenv-win\versions\3.8.10\lib\gzip.py", line 292, in read
    return self._buffer.read(size)
  File "C:\Users\ReenigneArcher\.pyenv\pyenv-win\versions\3.8.10\lib\gzip.py", line 479, in read
    if not self._read_gzip_header():
  File "C:\Users\ReenigneArcher\.pyenv\pyenv-win\versions\3.8.10\lib\gzip.py", line 427, in _read_gzip_header
    raise BadGzipFile('Not a gzipped file (%r)' % magic)
gzip.BadGzipFile: Not a gzipped file (b'<h')
@ReenigneArcher
Copy link
Author

I should have checked open PRs, but I guess this may be solved by #271

@razzeee
Copy link
Member

razzeee commented May 22, 2024

Yes, that's the theory

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