Skip to content

Commit d253bf6

Browse files
committed
🐛 - Fix cache clearing again
1 parent 35da798 commit d253bf6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • plugin.program.autowidget/resources/lib/common

plugin.program.autowidget/resources/lib/common/cache.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ def clear_cache(target=None):
3131
if choice:
3232
for file in [
3333
i
34-
for i in xbmcvfs.listdir(_addon_data)
35-
if i.split('.')[-1] in ["cache", "history", "queue"]
34+
for j in xbmcvfs.listdir(_addon_data)
35+
for i in j
36+
if i.endswith((".cache", ".history", ".queue", ".time"))
3637
]:
3738
utils.remove_file(os.path.join(_addon_data, file))
3839
else:

0 commit comments

Comments
 (0)