Is there a quick way to delete a file/video/folder?
#1
Hi there,

I'm using XBMC on a classic Xbox. But I think it doens't matter.
I'm streaming files on my Pc so it is pretty often that I check files recently downloaded and after seen them, I'd like to delete them.

Usually, using a remote, I go on the file I want to delete, I press the "preferences" button, a list pops on the screen with all the options (add to playlist, rename, delete,...), I go on delete and i confirm. Done.

I simply would like to know if there is a quicker way to do the same action.
Maybe setting a button on the remote control that directly delete the file.

Is there?
Thanks for help.
Reply
#2
Try mapping a button to delete.
I have seen that function (Delete item) in buttontranslator.cpp

just pick an unused button in remote.xml and put delete

<zero>delete</zero>

Worth a try.
Reply
#3
FishOil Wrote:Try mapping a button to delete.
I have seen that function (Delete item) in buttontranslator.cpp

just pick an unused button in remote.xml and put delete

<zero>delete</zero>

Worth a try.


Thanks mate, I'll try and let you know.
Reply
#4
It works. I just tried it.

But I only took the time to try it on XBMC 9.11 and I had to do it in the keymap.xml file. I am not sure if Dharma use's that file anymore. If not then remote.xml should work.
Reply
#5
Hey FishOil!

I made an attempt but had no luck.
I found the KEYMAP.XML file (insited system folder) and tried to edit it.

Sadly it is a long, long file and I cannot find the place in which I have to substitute one action with the DELETE action.

I make an example using the GLOBAL section.
I paste the original (part of it)

<keymap>
<global>
<remote>
<three>VolumeUp</three>
<six>VolumeDown</six>
<nine>Mute</nine>
<play>Play</play>
<pause>Pause</pause>


I guess I have to change the NINE button from MUTE to DELETE and so I'd get the following:

<keymap>
<global>
<remote>
<three>VolumeUp</three>
<six>VolumeDown</six>
<nine>Delete</nine>
<play>Play</play>
<pause>Pause</pause>


I rebooted but nothing changed.
Maybe because I changed the wrong section. Could it be so?

I want to post you a few screens referring to the section in which I like to have the buttong function, so that it can be clearer to you.

Picture 1

Picture 2
Reply
#6
I think you are in the wrong file. Make sure.

Anyway its delete not Delete.
Reply
#7
FishOil Wrote:I think you are in the wrong file. Make sure.

Anyway its delete not Delete.

What do you mean by wrong file?
Anyway I uploaded the file for your information, if you want to check it out.
http://rapidshare.com/files/430467171/Keymap.rar

Thanks.
Reply
#8
FishOil Wrote:Try mapping a button to delete.
I have seen that function (Delete item) in buttontranslator.cpp

just pick an unused button in remote.xml and put delete

<zero>delete</zero>

Worth a try.


Works as above on Dharma

A word of caution IT MAY BE ABLE TO DELETE YOUR ENTIRE LIBRARY it you select a source instead of a file and hit delete.
Reply
#9
FishOil Wrote:Works as above on Dharma

A word of caution IT MAY BE ABLE TO DELETE YOUR ENTIRE LIBRARY it you select a source instead of a file and hit delete.


What do you mean by Dharma. Is it a program? Or what?
Sorry Sad
Reply
#10
Thats the latest beta version of XBMC
Reply
#11
FishOil Wrote:Thats the latest beta version of XBMC

So you mean that using the latest XBMC, I would be able to change the key in the remote.xml file? On my actual XBMC I cannot find that file, I just find keymap.xml.
Reply

Logout Mark Read Team Forum Stats Members Help
Is there a quick way to delete a file/video/folder?0