-
v2.3.1: fix the profile carry-over, which Kodi's directory check silently broke
released this
2026-10-14 14:55:25 +00:00 | 51 commits to main since this releaseInstalling 2.3.0 on the box showed the carry-over never ran: the add-on came up
on default settings while the old add-on's profile sat right next to it. The
cause is a Kodi quirk, not an import or a path - xbmcvfs.exists() answers False
for a directory passed without a trailing slash, so the old profile "did not
exist" while every file inside it answered True.- directory existence now goes through one helper on each side
(control.vfs_isdir, service._isdir): trailing-slash form first, then
os.path.isdir, which works on the translated local path regardless - the same quirk had silently disabled the subtitle-cache sweep: its first line
was a directory check that always answered no, so "delete site SRTs older
than 7 days" never deleted anything - service.py's stale header comment pointed at resources/lib/modules/keymap.py,
which has not existed since the keymap moved into control.py - regression tests: test_dir_exists_quirk.py (30 assertions) - the helper
against a vfs that models Kodi (directory invisible without the slash, files
unaffected), the carry-over end to end through such a vfs, and the sweep
really deleting a stale cache file while leaving a fresh one alone. The
identity suite's stub vfs now models the quirk too, which is why it would
have caught this
Downloads
- directory existence now goes through one helper on each side