Delete pictures - Printable Version
+- Kodi Community Forum (http://forum.kodi.tv)
+-- Forum: Support (/forumdisplay.php?fid=33)
+--- Forum: General Support (/forumdisplay.php?fid=111)
+---- Forum: Linux and Live support (/forumdisplay.php?fid=52)
+---- Thread: Delete pictures (/showthread.php?tid=128877)
Delete pictures - wdu010 - 2012-04-14 17:42
Hello everyone. I am struggling for a while now with an annoying problem. I have a canon digital camera that makes pictures of 6 MB per piece. I read them directly into my media PC to the Pictures folder. Then I use XBMC to watch all pictures.
The problem is that XBMC does not give me the option to delete a certain picture when viewing the file fullscreen. I can only watch them. This is quite annoying because I will have to use my laptop and a SAMBA connection to view and delete the files. Because they are 6MB, this is a very slow process.
My question: is there a way (maybe with some XML file?) to enable deletion of pictures in XBMC while vieweing them full screen? Seems like a simple feature that will save many users a lot of time.
Thank you for your help.
RE: Delete pictures - zenomat - 2014-04-19 13:21
I had the same problem so after 2 days of googeling around I finally managed to make it work. In order to implement this function follow the next steps:
1. Go to system - settings - Appearance - File List - "Allow file renaming and deleting" - checked
2. Create a subfolder in your xbmc folder called "UserScripts" - ex "d:\Program Files (x86)\XBMC\UserScripts"
3. Create the fololwing script in that folder. Save it as "delete.py"
#============== Delete Pictures Script =======================================
4. Edit the file "d:\Program Files (x86)\XBMC\system\keymaps\keyboard.xml"
In the <SlideShow> group add a line
<delete>RunScript("d:\Program Files (x86)\XBMC\UserScripts\delete.py")</delete>
5. Restart XBMC
RE: Delete pictures - Lamoboy - 2015-12-06 13:08
When I use the script above with Kodi under Debian 8.2, I get the following error in log:
RE: Delete pictures - ronie - 2015-12-06 14:22
the code didn't display properly in the post. fixed now.
RE: Delete pictures - Lamoboy - 2015-12-06 14:37
RE: Delete pictures - ronie - 2015-12-06 14:45
RE: Delete pictures - Lamoboy - 2015-12-06 15:20
How to make it work for files on smb share?
RE: Delete pictures - ronie - 2015-12-06 16:44
something like this should work:
RE: Delete pictures - Lamoboy - 2015-12-06 17:54
ronie, you are amazing! Now this script deletes files on smb shares too. Thank you very much!
RE: Delete pictures - un1versal - 2015-12-06 19:21
If you have a remote controller all you need to do is press the clear button when you are hovering over the picture you want to delete, it will ask you if you want to delete it.
RE: Delete pictures - Lamoboy - 2015-12-06 23:02
(2015-12-06 19:21)un1versal Wrote: If you have a remote controller all you need to do is press the clear button when you are hovering over the picture you want to delete, it will ask you if you want to delete it.I don't have "clear" button on my Apple TV 1st gen remote control.