Kodi Community Forum
[Release] Backup (formerly XBMC Backup) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [Release] Backup (formerly XBMC Backup) (/showthread.php?tid=129499)



RE: [Release] XBMC Backup - robweber - 2012-08-01

The last file that is successfully added is "addons/skin.moddedconfluence/media/flagging/studios/Canal+ Distribution.png" after that the next file in the list throws the Unicode error and halts everything.

I dug up the skin.moddedconfluence github page (https://github.com/mad-max/skin.moddedconfluence/tree/master/media/flagging/studios) and looked through the folder structure to find the file that would have been directly after the Canal+ Distribution.png file. That file is called "Canal+ Espa¦a.png". As you can see there is a non ASCII character in that filename. I'm guessing that is the source of your problems right there. There are a few others after that with some international characters as well.

Earlier in this thread there were some users using Aeon Nox, which also includes these types of studio graphics, that were having similar problems because of non standard characters in the filenames. I think the solution for you here might be to just not backup your addons.


RE: [Release] XBMC Backup - Jean-Max - 2012-08-01

(2012-07-31, 20:38)robweber Wrote: I'm guessing you have the same addon installed on both systems? The error in both of those log files is the same, a unicode error for some filename at position 73....
Add-on : XBMC Backup 0.1.1 everywhere....(auto updated version from 0.1.0)

Windows XP + XBMC eden 12 alpha 4
http://pastebin.com/X3tiVN0A

Windows 7 + XBMC eden 12 alpha 4
http://pastebin.com/m8zeqGcf

Zbox HD-ID11 + Openelec eden ion 64 1.95.5 (2.0Beta5)
http://pastebin.com/4VSpc3QY




RE: [Release] XBMC Backup - Jean-Max - 2012-08-01

(2012-08-01, 15:57)robweber Wrote: That file is called "Canal+ Espa¦a.png".
Many Thanks !

It's the Spanish "n" with accent on it which is refused
I will desinstall the "Canal + TV replay add-on" and see the result

Quote:I think the solution for you here might be to just not backup your addons.
OK !
In XBMC-Backup add-on config, (XBMC + Windows XP), I just uncheck the add-on save

-> Same script error.....



RE: [Release] XBMC Backup - robweber - 2012-08-01

After using the logs provided and running some tests on my own I've added some character encoding calls to a few areas of the addon. this should help with the international characters throwing errors in the script. After the repo updates (0.1.2) anyone having these types of issues please run your systems again and see if the results change. Thanks.

UPDATE:

got word back that my pull request is denied for submitting too many changes over too short a time (I think this is the 3rd in like a week). Anyone wanting to pull the new version directly from the GitHub page is more than welcome; otherwise you'll have to wait a week or two before I can submit again for a pull.

https://github.com/robweber/xbmcbackup


RE: [Release] XBMC Backup - mikebzh44 - 2012-08-01

Now, your addon is available on Passion-XBMC repository :

http://passion-xbmc.org/addons/?Page=View&ID=script.xbmcbackup

Just have to install repo : http://passion-xbmc.org/addons/?Page=View&ID=repository.passion.xbmc.org


RE: [Release] XBMC Backup - Jean-Max - 2012-08-02

Hello,

Thanks for all the efforts & work Smile

I just downloaded and installed XBMC Backup 0.1.2 on my XBMC Windows (eden 12 alpha 4, XP PC)

In add-on config /files saving choice/ I unchecked all, letting only Database saving

-> Script error "Robweber - xbmcbackup - bc835eb"

Here is the total debug log:
http://pastebin.com/X6Fb2nG1

edit 09:18

374 File "C:\Documents and Settings\Propritaire\Application Data\XBMC\addons\robweber-xbmcbackup-bc835eb\default.py", line 96, in __init__ self.local_path = xbmc.translatePath("special://home").encode("utf-8"); UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 32: ordinal not in range(128)

The character 'é' which is missing, of \Propriétaire\ seems to be the 32th


RE: [Release] XBMC Backup - robweber - 2012-08-02

@mikebzh44 - thanks for adding to the passion repo. Is there anything I need to do to make sure that stays up to date?


@Jean-Max - I think we may have discussed this a few threads back. You can't have international characters in your windows path, it just doesn't work.

I guess as an open call to anyone with more character set experience than me - help! I'm not quite sure what to try anymore to get the filenames to stop throwing errors based on the international characters. Maybe there isn't anything that can be done but that doesn't seem right.


RE: [Release] XBMC Backup - mikebzh44 - 2012-08-02

Each time you will release a new version, post here. I will download ZIP file and push it on Passion-xbmc repository.


RE: [Release] XBMC Backup - Martijn - 2012-08-02

This might help with those unicode problems:
https://github.com/XBMC-Addons/script.artwork.downloader/blob/master/resources/lib/utils.py#L43

Maybe not the prettiest way and you should do some testing if it actually does what you need.
I use it to match titles that contain those characters however it might just remove them for matching them which in my case isn't an issue.


RE: [Release] XBMC Backup - prynn - 2012-08-07

(2012-07-24, 18:54)robweber Wrote: Does XBMC crash or just the addon? The log file looks like it just ends while trying to write an image file.

Try doing a backup to a local directory and see if it completes then (if that works, do a backup over the top of that one too). It may be a problem writing to the NFS Share. The entire backup should not disappear if files have been written.

Yea, the problem is now when I've selected the backup job on my nas, I can't switch the path in the progam I can't get back to the home window where I want to point the backup.

on the other hand. Do you think the problem is that I've named my nas with swedish characters?


RE: [Release] XBMC Backup - robweber - 2012-08-09

I'm not sure why you wouldn't be able to just manually type, or browse to a path. I'm using the XBMC built-in path browser so you should be able to see anything XBMC can normally see. You could try wiping out the addon settings file in userdata/addon_data and redefining your settings from scratch. There aren't that many so maybe it would fix your path problem.

The swedish characters could definitely be an issue. I'm working on different ways to handle those types of characters and so far am falling short. The biggest issue seems to be that that the xbmc.log() command doesn't like them.

@mikebzh44 - I've added a few more strings to the English strings.xml file (30045-30052). If you could also translate these to French then the English, German, and French translations will all be done! Thanks.


RE: [Release] XBMC Backup - prynn - 2012-08-09

Ohyea, good idea removing the userdata in this addon. Cuz as now I can't change the path from my nfs configuration.

Sadly I can't give you any logs since im not home that much during the summer.
Gonna send i one asap when I get home Smile

I see now when I finally got my xbmc just as I like it. It would be good if I had a english name on the NAS. Instead of swedish. :/
Guess I've to save the backup local on atv and then put it to my NAS. Hopefully that will work Smile

Cheers


RE: [Release] XBMC Backup - mikebzh44 - 2012-08-10

Here is the french translation :

Code:
    <string id="30045">Erreur : Le chemin distant ne peut pas être vide.</string>
    <string id="30046">Démarrage</string>
    <string id="30047">Dossier Local</string>
    <string id="30048">Dossier Distant</string>
    <string id="30049">Collecte de la liste des fichiers</string>
    <string id="30050">Le chemin distant existe - d'anciens fichiers peuvent s'y trouver !</string>
    <string id="30051">Création de la liste des fichiers</string>
    <string id="30052">Ecriture du fichier</string>



RE: [Release] XBMC Backup - robweber - 2012-08-10

(2012-08-10, 10:24)mikebzh44 Wrote: Here is the french translation :

Code:
    <string id="30045">Erreur : Le chemin distant ne peut pas être vide.</string>
    <string id="30046">Démarrage</string>
    <string id="30047">Dossier Local</string>
    <string id="30048">Dossier Distant</string>
    <string id="30049">Collecte de la liste des fichiers</string>
    <string id="30050">Le chemin distant existe - d'anciens fichiers peuvent s'y trouver !</string>
    <string id="30051">Création de la liste des fichiers</string>
    <string id="30052">Ecriture du fichier</string>

Great. Thank you!


RE: [Release] XBMC Backup - Ferdi-T - 2012-08-11

I'm using the backup right now. Restored a backup to an nfs-share and am restoring it from there. Thing is, the restore hangs around 2% and has been doing so for an hour. It's stuck at addons/metadata.album.universal/addon.xml.

I'm wondering, did it crash or is this normal (music collection is about 30.000 files)?