I transfered myXBMC database to AppleTV2 successfully, without loosing my Thumbnails (and I lost some time to find such an easy way to do it).
First, I have my XBMC installation on my Windows computer, and files are on the local hard drives, like D:\, E:\,....
If you share those folders in order to access them from your AppleTV2, or if you move your files, there are changes that you will loose your thumbnails as the CRC32 in their names will change.
Here is what I did, it is easy and works fine:
Let's say that you had your movies in "E:\Movies\" and now they will be on an SMB share, for example : "smb://HostComputer/Movies/" (it can be nfs share, or simply moving your files on the same computer too, it doesn't matter)
Go on your computer (Linux/MacOSX/Windows/??), System/Video/Library/Export
Choose a path where you want to export it
Go to the place where you created the backup (eg: C:\backup) and edit the following file :
Quote:C:\backup\xbmc_videodb_YYYY-MM-DD\videodb.xml
You will find things like that:
Quote:<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<videodb>
<movie>
<title>8th Wonderland</title>
<originaltitle>8th Wonderland</originaltitle>
<rating>0.000000</rating>
<epbookmark>0.000000</epbookmark>
<year>2008</year>
<top250>0</top250>
<votes>0</votes>
<outline>Des millions de personnes disséminées de par le monde et déçues de la manière dont celui-ci évolue décident de s'unir. Toutes guidées par le même désir d'améliorer les choses, de ne plus subir l'actualité sans pouvoir réagir. Par le biais d'Internet, elles créent le premier Pays virtuel : 8th Wonderland. Chaque semaine, tous ses habitants votent par référendum une motion différente... Mais que se passerait-il si les motions de 8th Wonderland devenaient petit à petit plus réactionnaires ? Si sa manière d'agir se rapprochait lentement mais sûrement d'un comportement terroriste ? Un problème insoluble se poserait alors à l'ensemble des Nations.Comment combattre un pays qui n'existe pas ?</outline>
<plot>Des millions de personnes disséminées de par le monde et déçues de la manière dont celui-ci évolue décident de s'unir. Toutes guidées par le même désir d'améliorer les choses, de ne plus subir l'actualité sans pouvoir réagir. Par le biais d'Internet, elles créent le premier Pays virtuel : 8th Wonderland. Chaque semaine, tous ses habitants votent par référendum une motion différente... Mais que se passerait-il si les motions de 8th Wonderland devenaient petit à petit plus réactionnaires ? Si sa manière d'agir se rapprochait lentement mais sûrement d'un comportement terroriste ? Un problème insoluble se poserait alors à l'ensemble des Nations.Comment combattre un pays qui n'existe pas ?</plot>
<tagline></tagline>
<runtime>1h 45min</runtime>
<thumb preview="http://passion-xbmc.org/scraper/Gallery/preview/Poster_8thWonderland-240361.jpg">http://passion-xbmc.org/scraper/Gallery/main/Poster_8thWonderland-240361.jpg</thumb>
<fanart>
<thumb preview="http://passion-xbmc.org/scraper/Gallery/preview/Fanart_8thWonderland-240360.jpg">http://passion-xbmc.org/scraper/Gallery/main/Fanart_8thWonderland-240360.jpg</thumb>
<thumb preview="http://passion-xbmc.org/scraper/Gallery/preview/Fanart_8thWonderland-240357.jpg">http://passion-xbmc.org/scraper/Gallery/main/Fanart_8thWonderland-240357.jpg</thumb>
<thumb preview="http://passion-xbmc.org/scraper/Gallery/preview/Fanart_8thWonderland-240356.jpg">http://passion-xbmc.org/scraper/Gallery/main/Fanart_8thWonderland-240356.jpg</thumb>
<thumb preview="http://passion-xbmc.org/scraper/Gallery/preview/Fanart_8thWonderland-240358.jpg">http://passion-xbmc.org/scraper/Gallery/main/Fanart_8thWonderland-240358.jpg</thumb>
<thumb preview="http://passion-xbmc.org/scraper/Gallery/preview/Fanart_8thWonderland-240359.jpg">http://passion-xbmc.org/scraper/Gallery/main/Fanart_8thWonderland-240359.jpg</thumb>
</fanart>
<mpaa>Couleur / Format du son : Dolby numérique / Format de projection : 1.85 : 1 / Format de production : 35 mm / Tourné en : Français</mpaa>
<playcount>0</playcount>
<lastplayed></lastplayed>
<file></file>
<path>E:\Movies\</path>
<filenameandpath>E:\Movies\8Th Wonderland (2010).avi</filenameandpath>
<id>1060234</id>
<genre>Drame</genre>
<genre> Thriller</genre>
<credits>Nicolas Alberny</credits>
<credits>Jean Mach</credits>
<director>Nicolas Alberny, Jean Mach</director>
<premiered></premiered>
<status></status>
<code></code>
<aired></aired>
<studio>Mad Films</studio>
<studio> Mad Films</studio>
<trailer></trailer>
<fileinfo>
<streamdetails>
<video>
<codec>xvid</codec>
<aspect>1.857143</aspect>
<width>624</width>
<height>336</height>
<durationinseconds>5653</durationinseconds>
</video>
<audio>
<codec>mp3</codec>
<language></language>
<channels>2</channels>
</audio>
</streamdetails>
</fileinfo>
<actor>
<name>Evelyne Macko</name>
<role>Yuichira</role>
<thumb>http://passion-xbmc.org/scraper/Gallery/main/EvelyneMacko-107472.jpg</thumb>
</actor>
<actor>
<name>Amanda Lear</name>
<role>elle-même</role>
<thumb>http://passion-xbmc.org/scraper/Gallery/main/AmandaLear-32728.jpg</thumb>
</actor>
</movie>
The lines that you will need to change are the following ones:
Quote: <path>E:\Movies\</path>
<filenameandpath>E:\Movies\8Th Wonderland (2010).avi</filenameandpath>
Change them to:
Quote: <path>smb://HostComputer/Movies/</path>
<filenameandpath>smb://HostComputer/Movies/8Th Wonderland (2010).avi</filenameandpath>
Now that you understood where is the information to change, you can just use "Search and Replace" on "E:\Movies\" to "smb://HostComputer/Movies/"
Once it is done save your file and place your backup somewhere on your new installation, if you intend to migrate to an AppleTV2, zip the folder, and upload it with pscp.exe:
Quote:pscp.exe xbmc_videodb.zip [email protected]:/private/var/mobile/
Login to your AppleTV2 with ssh go to /private/var/mobile and type:
Quote:unzip xbmc_videodb.zip
It will create a directory like :
xbmc_videodb_YYYY-MM-DD
Also, check that your sources.xml are correct, for example in our example it will be:
Quote:<video>
<default pathversion="1"></default>
<source>
<name>Movies</name>
<path pathversion="1">smb://HostComputer/Movies/</path>
</source>
</video>
You can check it via SSH on your AppleTV by doing:
Quote:cat /private/var/mobile/Library/Preferences/XBMC/userdata/sources.xml
Now launch XBMC on your AppleTV or your new computer/same computer if you just moved your files
Go to System/Video/Library/Import Library and browse your computer for the backup (on the AppleTV, just click on "Home Folder" and you will be directly where your backup is)
Wait for XBMC to finish... and then fo to your video Library, all your files should be there, with the correspoding thumbnails/fan arts/informations and informations without having to scrap them again, very useful for the people like me with a slow connection or those your personnalized a lot the thumbnails/fan arts.