Moving all my medias. Which tool to update the db ?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
miljbee Offline
Senior Member
Posts: 160
Joined: Jun 2008
Reputation: 2
Location: France
Post: #1
Hello,

I am thinking of moving all my media Files to my NAS.

Today, I have all my Vids in d:\Videos.
If I move them onto the NAS, they will be located to R:\Videos.

Is there a way to update the Library DB without rescrapping ?

Thanks !

Thanks to all XBMC contributors, devs, skinners, scripters, ... It's really an amazing piece of software.
find quote
Hudson_Hawk04 Offline
Posting Freak
Posts: 1,184
Joined: Oct 2006
Reputation: 3
Post: #2
you are going to need to change the paths of your shares, doing that "may" allow you to update without re scraping...don't quote me though.

I feel sorry for people who don't drink. When they wake up in the morning, that's as good as they're going to feel all day.
Frank Sinatra
If I managed to help you in any way, please add to my reputation
.
find quote
miljbee Offline
Senior Member
Posts: 160
Joined: Jun 2008
Reputation: 2
Location: France
Post: #3
of course, I can map the d:\ to the NAS, but that's not what I want.

I need to keep my D:\ as a local drive for other things that runs on the same computer.

Thanks to all XBMC contributors, devs, skinners, scripters, ... It's really an amazing piece of software.
find quote
Tuxon86 Offline
Senior Member
Posts: 160
Joined: Apr 2010
Reputation: 0
Post: #4
Couldn't you just export the DB and do a search and replace of the path and then import it after clearing it?
find quote
jhsrennie Offline
Team-XBMC Developer
Posts: 7,248
Joined: Nov 2008
Reputation: 119
Location: Chester, UK
Post: #5
Tuxon86 Wrote:Couldn't you just export the DB and do a search and replace of the path and then import it after clearing it?

Yes, export the library and choose the export to single file option. Then open the XML file in your favourite text editor and replace D:\ by R:\. Then delete the old database and import your edited version.

Actually I'd backup rather than delete the old database just in case.

JR
find quote
miljbee Offline
Senior Member
Posts: 160
Joined: Jun 2008
Reputation: 2
Location: France
Post: #6
Thank you for the export/import tip, that's exactly what I need.

I will let you know if it worked or not when I will do it.

Thanks to all XBMC contributors, devs, skinners, scripters, ... It's really an amazing piece of software.
find quote
miljbee Offline
Senior Member
Posts: 160
Joined: Jun 2008
Reputation: 2
Location: France
Post: #7
the export/import trick worked great. It's easy to do.


Thanks for your help.

Thanks to all XBMC contributors, devs, skinners, scripters, ... It's really an amazing piece of software.
find quote