Update Library

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Evypoo Offline
Junior Member
Posts: 2
Joined: Aug 2012
Reputation: 0
Post: #1
Hi all,

Thank you in advance for your help. I have had xbmc running on two different ATV 2 units for some time now. I have a large video collection with movies and tv shows. Recently I realized that the movies were not playing and I could not update the library. I have an external hard drive connected to my router and I discovered that the ip address was changed for some reason. I made this change in xbmc in the "file manager" screen and I can play video through there. However, in my library the movies still link to the old location and it gives me an error saying that the file cannot be found. I also cannot update the library. Any ideas? I'm guessing that I have to erase all the content from my library and re-add the source or something to that extent.

Thanks!
find quote
tetzuoshima Offline
Member
Posts: 85
Joined: Feb 2011
Reputation: 0
Location: Sweden
Post: #2
Hi most routers have a setting to always give the same DHCP adress to a client (reserve ip or something), take a look at your router config.

[Image: watched-fanart.jpg]
Hardware. Asrock VisionX, Onkyo TX-SR508, LG 47", ReadyNAS Ultra 6 TB | Software. XBMC Frodo, Aeon Nox 4.0, Sickbeard, Couchpotato, SABnzbd, Newznab server
[Newznab]
[trakt.tv]
find quote
Ned Scott Offline
Team-XBMC Wiki Guy
Posts: 11,937
Joined: Jan 2011
Reputation: 131
Location: Arizona, USA
Post: #3
The file paths are stored in the video database for library items. There are a few ways to update the IP there. It's odd that your router changed IP addresses.

You'll want to export the library by going to Settings/Videos/Library/Export library, and select single file.

Use something like Cyberduck to connect to the ATV2 to get access to the folder that it outputs.

Inside that folder is an XML file, which you can open in a text editor and then use the find/replace tools to find all instances of the old IP and replace them with the new IP. Save and close.

Transfer this file back to the ATV2 so that you can import it. Probably placing it in the same place the files got exported.

Settings/Videos/Library/Import library

After that's done, select "clean library" to get rid of the duplicate entries.

You can make easy links to the XBMC wiki using double brackets around words: [[debug log]] = debug log, [[Add-on:YouTube]] = Add-on:YouTube, [[Adding videos to the library]] = Adding videos to the library, [[userdata]] = userdata, etc
find quote
Evypoo Offline
Junior Member
Posts: 2
Joined: Aug 2012
Reputation: 0
Post: #4
Thanks guys for the quick replies. Exporting and importing the library sounds like it will do the trick. I will try and let you know how it goes.

Thanks again!
find quote