19 posts / 0 new / Last post
#1  February 9, 2010 - 2:35am
Pippo3000's picture
Offline
Joined: Feb 2010
Posts: 13
Kudos: 0

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?

Phil

  February 9, 2010 - 9:52am
odinb's picture
Offline
Joined: Feb 2010
Posts: 213
Kudos: 0

SSh into the machine and edit the "sources.xml" found in /Users/frontrow/Library/Application\ Support/XBMC/userdata/sources.xml on your AppleTV.

  February 9, 2010 - 12:41pm
Pippo3000's picture
Offline
Joined: Feb 2010
Posts: 13
Kudos: 0
  "odinb" wrote:

SSh into the machine.

ooops. so no GUI for dummies like me?

  February 9, 2010 - 4:10pm
odinb's picture
Offline
Joined: Feb 2010
Posts: 213
Kudos: 0

You can SSH using WinSCP on a windows box or muCommander on Mac OSX. Then everything except the text editor for doing the changes will be GUI-based (and even that one depending on how you count).

  February 12, 2010 - 11:23am
ejsjrnc's picture
Offline
Joined: Jan 2010
Posts: 19
Kudos: 0

There is a simpler way then editing an xml file.

Select the source and hold down the menu button on your AppleTV remote. It will then launch a contextual menu with the option to remove source.

Done.

BTW, found this on the [url=http://wiki.xbmc.org/?title=XBMC_Online_Manual]xbmc online manual[/url]....specifically [url=http://wiki.xbmc.org/index.php?title=Global_Apple_Remote]this page[/url]

Google is your friend.....

  February 14, 2010 - 12:10pm
Pippo3000's picture
Offline
Joined: Feb 2010
Posts: 13
Kudos: 0
  "ejsjrnc" wrote:

There is a simpler way then editing an xml file.

Select the source and hold down the menu button on your AppleTV remote. It will then launch a contextual menu with the option to remove source.

Done.

BTW, found this on the [url=http://wiki.xbmc.org/?title=XBMC_Online_Manual]xbmc online manual[/url]....specifically [url=http://wiki.xbmc.org/index.php?title=Global_Apple_Remote]this page[/url]

Google is your friend.....

I expected this but did not succeed as I get no context menu when tried this approach. will try again...

  February 16, 2010 - 1:26am
Pippo3000's picture
Offline
Joined: Feb 2010
Posts: 13
Kudos: 0
  "Pippo3000" wrote:

I expected this but did not succeed as I get no context menu when tried this approach. will try again...

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.

Phil

  February 16, 2010 - 9:13pm
ejsjrnc's picture
Offline
Joined: Jan 2010
Posts: 19
Kudos: 0

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.

my sources.xml file looks like
[code]

Video Playlists
special://videoplaylists/

Movies
/Users/frontrow/Movies/

NewStuff
smb://192.168.1.105/NewStuff/

iPod Movies
smb://192.168.1.105/iPodMovies3/
smb://192.168.1.105/iPodMovies2/
smb://MACBOOK/ipod movies/

[/code]

If I wanted to remove the NewStuff source, I would delete
[i]
NewStuff
smb://192.168.1.105/NewStuff/
[/i]
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.

  February 26, 2010 - 1:29am
Pippo3000's picture
Offline
Joined: Feb 2010
Posts: 13
Kudos: 0

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.

Happy camper again
Phil

  March 7, 2010 - 8:11pm
moto's picture
Offline
Joined: Feb 2010
Posts: 10
Kudos: 0

This is obviously a problem with the interface. Hopefully someone from Boxee is monitoring this thread and this gets fixed in the next release.

  February 25, 2011 - 5:11pm
edoras's picture
Offline
Joined: Feb 2011
Posts: 3
Kudos: 0

Here's a simple way to delete the media source for APple TV 2 - [HOW-TO] - Removing Video Source from XBMC List (Apple TV 2)

I am not a Fan of Apple... I am Apple...

  April 12, 2011 - 11:50pm
airmax617's picture
Offline
Joined: Apr 2011
Posts: 2
Kudos: 0

holding down the menu key does not work for me...is this a bug?? i was able to do it to one entry but that was it.Can someone give me a step by step of how to SSH into the sources.xml and change everything? i am new to all this and still learning.Thanks.

  December 27, 2011 - 9:46am (Reply to #12)
daniloss's picture
Offline
Joined: Dec 2011
Posts: 8
Kudos: 2
  airmax617 wrote:

holding down the menu key does not work for me...is this a bug?? i was able to do it to one entry but that was it.

Can someone give me a step by step of how to SSH into the sources.xml and change everything? i am new to all this and still learning.

Thanks.

 

same here!

 

please, can anyone help us??

  December 27, 2011 - 10:09am
daniloss's picture
Offline
Joined: Dec 2011
Posts: 8
Kudos: 2

i really need to delete a SBM source which I misspelled.

 

can anyone help me?

 

i already tried holding down the menu button on my Apple TV remote and it did not launch the contextual menu with the option to remove source.

  December 27, 2011 - 11:04am
daniloss's picture
Offline
Joined: Dec 2011
Posts: 8
Kudos: 2

 

how can i delete those 2 smb sources that i added?  already tried everything that i know but nothing has worked. can anyone help me? tks in advance!

[[wysiwyg_imageupload:128:]]

  October 12, 2012 - 11:44pm
young.heath's picture
Offline
Joined: Oct 2012
Posts: 1
Kudos: 0

Hey Daniloss,

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.

"/private/var/mobile/Library/Preferences/XBMC/userdata"

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://root@192.168.1.25/private/var/mobile/Library/Preferences/XBMC/use... 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. Smile

Heff

  October 14, 2012 - 9:09am
Stoobie's picture
Offline
Joined: Sep 2010
Posts: 2
Kudos: 0

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".

Stoobie

  December 9, 2012 - 6:23pm
FetchATV's picture
Offline
Joined: Dec 2012
Posts: 1
Kudos: 0

Had the same problem today, took a few minutes to find where it was located. Follow these steps, if you're on a Mac:

 

1) Open Terminal (Utilities folder) and type: ssh frontrow@(IP address) (unless you've changed the user/pass)

2) If you haven't done the previous step before, it'll ask you to trust the RSA key, type 'yes' without quotes.

3) Enter the password frontrow (unless you've changed the user/pass)

4) Change your directory to Library/Application\ Support/XBMC/userdata/

5) 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)

6) You should see a file called 'mediasources.xml'. Type 'nano -w mediasources.xml'

7) 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>

That's it.

i

  July 13, 2014 - 9:47am
Luckywales's picture
Offline
Joined: Jul 2014
Posts: 1
Kudos: 0

Using the apple remote worked for me. Not at first. First of all it operated just like a "back" button but with some perseverance it worked. Just make sure you're holding it firmly and not wavering - needs a consistent signal.  After about 4 attempts it worked.