Texture Cache Maintenance utility

It's annoying having to delete the entire Textures13.db+Thumbnails folder to try and correct scraping errors and/or corrupted images that just never go away, so I've written a very trivial Python script that can be used to interrogate the texture cache...

ERROR: ExecuteAsync

I have a strange issue, hopefully some Kodi python gurus can help with. My addon has a setting in the settings.xml which calls a script that is included in my addon: Code: <setting visible="true" label="Run the Wizard" type="action" action="RunScri...

Add on updates fail when temp and addons are on different file systems

I have ~/.kodi/temp and ~/.kodi/addons on different file systems. ~/.kodi and ~/.kodi/addons are on the same file system and ~/.kodi/temp is on a different one (I keep temp on a different file system because I don't want to include it my btrfs snapshots).

Both ~/.kodi/[addons,temp] have the same file system permissions:
drwxr-xr-x 1 mythtv users

(I run kodi as the user "mythtv").

Whenever Kodi attempts to update any addon, it fails. Here's an example excerpt from ~/.kodi/temp/kodi.log:

Code:
21:05:07 T:139855379003136   DEBUG: Unpacking zip://special%3A%2F%2Fhome%2Faddons%2Fpackages%2Fresource.language.en_us-3.0.2.zip/resource.language.en_us/ to /home/mythtv/.kodi/temp/a11290a5-cdd3-4d2d-9681-14102b94326f
21:05:07 T:139855379003136   DEBUG: Rename: Source file "/home/mythtv/.kodi/addons/resource.language.en_us" and target file "/home/mythtv/.kodi/temp/94fb4cac-bfbf-4f54-928e-b0d2ef8c928e" are located on different filesystems, copy&delete will be used instead of rename
21:05:07 T:139855379003136   ERROR: Copy - Failed read from file /home/mythtv/.kodi/addons/resource.language.en_us
21:05:07 T:139855379003136   ERROR: Rename - Error renaming file /home/mythtv/.kodi/addons/resource.language.en_us
21:05:07 T:139855379003136   ERROR: Failed to move old addon files from '/home/mythtv/.kodi/addons/resource.language.en_us' to '/home/mythtv/.kodi/temp/94fb4cac-bfbf-4f54-928e-b0d2ef8c928e'

Permissions of "/home/mythtv/.kodi/addons/resource.language.en_us" which the logs say "failed read":
Code:
$ ls -la /home/mythtv/.kodi/addons/resource.language.en_us
total 8
drwxr-xr-x 1 mythtv users   52 Jul 22 19:49 .
drwxr-xr-x 1 mythtv users 7918 Nov  2 00:16 ..
-rw-r--r-- 1 mythtv users  701 Jul 22 19:49 addon.xml
-rw-r--r-- 1 mythtv users 1994 Jul 22 19:49 icon.png
drwxr-xr-x 1 mythtv users   44 Jul 22 19:49 resources

If I su to the "mythtv" user, I can rename, copy, delete, etc the "/home/mythtv/.kodi/addons/resource.language.en_us" directory fine.

Note that Kodi can and does write to ~/.kodi/temp - there are plenty of files and directories in there. If I make ~/.kodi/temp a directory on the same file system as ~/.kodi, then addons upgrade fine. Therefore, I suspect there's a problem with the code that does "copy&delete will be used instead of rename" - but maybe I'm doing something wrong?

I'm using Kodi 17 post beta 5 (git commit c05fc78) built today.

Thanks in advance for the assistance.

Cannot add any movies to library

Hello everyone, thank you in advance for taking a look at this. I read the wiki on importing videos at least ten times just to make sure i'm not missing a step. I've been searching the forums for three days and not finding an answer so it looks like i ...

Default menu modifications

Hello All, I assume this is the correct forum for basic Linux questions. Actual build is LibreELEC (official) Version: 7.0.2 running Kodi 16.1 Using Kodi to replace Mythtv front end How would I go about modifying the menu selection from the default...

Change movie – IMDB or TMDB ID

Would it be possible add feature request so when we choose "Change Movie" we can input IMDB or TMDB ID.. Right now it is only possible to use to IMDB. There are times when some movies are only listed on TMDB especially new non mainstream or non engli...

new kodi / spmc user

So heres my basic setup kodi on desktop pc that has harddrives with movies connected to it. SPMC on my nvidia shield that is connected to my tv. Adding movies everything is fine, make sure movie is right name, update library good to go shows up on my t...

executebuiltin RunPlugin – check if found?

I'm using xbmc.executebuiltin("RunPlugin()") and if this plugin isn't installed it will prompt you to install the plugin only if you have a repository installed that holds the plugin, if you do not have the plugin installed and also do not have a repos...

Input devices constantly being discovered

On my PC, KODI 17 beta 5 constantly seems to discover two of my gaming controllers: Code: 21:10:19 T:9164   ERROR: AddOnLog: Joystick Support: JOYSTICK::CJoystickInterfaceDirectInput::EnumJoysticksCallback: Failed to acquire device on: CH ...