does anyone know how to edit/delete a source I added to XBMC? I added a SMB source from my network but it has a typo so cannot be found, it just sits there when I search sources but I cannot delete/edit it. tried pressing menu or play/pause button but no success. Any idea?
Hm, tried this. Have to correct my initial statement. I can delete the source once added if I select Video and the I see the sources and can delete from there. But this are the sources I added via SBM and which got a ‘nice’ name like DVD, Movies or Kids. However, I once added a source to the search list, i.e. when I want to add another source then I get the menu where I can select e.g. from SBM, uPnP etc. and here I once added a SBM source which I misspelled. ~ instead of -. And that one I cannot seem to delete from the list. Any ideas? Maybe I should post a screenshot but wouldn’t be able to tell how to make one on the ATV, well except by taking a real photo.
if it doesn’t give you the option to remove source in the context menu, then the only other option would be to copy the xml file mentioned before and delete it using a text editor, save the file and copy it back to the AppleTV overwriting the file there.
If I wanted to remove the NewStuff source, I would delete
using a text editor (notepad on windows, textedit or something similar on OS X) and save the file, then copy it back to the folder.
When you relaunch XBMC, the source should be gone from your list.
Just wanted to let you know that it worked. Got the stupid source deleted. Though - as I tried to explain before - I did not really mean ‘sources’ but the ‘links’ I can use to add sources from (Hm, if that helps to explain what I mean), anyway: they solution was to edit another files but the sources.xml, cannot remember the name but it was in the very same folder.
I had the exact same problem. Got some hints from this thread and got me headed in the right direction. Not sure what OS you are using, but I am using Apple TV 2 recently jailbroken with EDEN. Anyway the filename that is mentioned throughout this thread is wrong, and so is the location. Here is where I found the file I needed to edit.
Inside of that folder you will find a file called “mediasources.xml” that holds the config that you are referring to. The file name mentioned earlier, “sources.xml” holds the config for what you would see under the Video heading in XBMC.
I used ssh from a linux terminal to get access to the file. sftp://firstname.lastname@example.org/private/var/mobile/Library/Preferences/XBMC/userdata. This can be done from “terminal” or “Nautilus”. Nautilus is easier cause you get the GUI you were looking for. You can also do it from Windows. Download a program called WinSCP. It is very straight forward. Just enter the ip address of your apple tv and the user and password. Mine is freshly jailbroke, and the user is “root” password is “alpine”.
Hope this helps you, and if not someone else. It was driving me crazy too.
I’ve discovered that it depends which skin is installed as to whether holding down the MENU button brings up the menu. I use Confluence and it works in there. When I used other skins the MENU button did not always bring a menu up.
Also, you need to “press & hold” the MENU button down as opposed to “press it”.
Had the same problem today, took a few minutes to find where it was located. Follow these steps, if you’re on a Mac:
Open Terminal (Utilities folder) and type: ssh frontrow@(IP address) (unless you’ve changed the user/pass)
If you haven’t done the previous step before, it’ll ask you to trust the RSA key, type ‘yes’ without quotes.
Enter the password frontrow (unless you’ve changed the user/pass)
Change your directory to Library/Application\ Support/XBMC/userdata/
The extra \ in the line above is to add the space between the words. If you’re going through one folder at a time, you can type ‘cd Application*’ instead (without the quotes). Once in the folder, type ‘ls’ (without quotes)
You should see a file called ‘mediasources.xml’. Type ‘nano -w mediasources.xml’
The above opens up an editor. Arrow down to the lines you want to delete, and delete them. Once they are gone hit CTRL-O to save, hit enter to accept the saved file name, then hit CTRL-X. This will exit you out of the Editor and you’re done. You can do the same with sources.xml as well.
Please keep in mind that you must be careful when deleting things from these files. Only delete the single, whole line as it appears:
<location>Other stuff here including the name of your link and the destination</location>