problem with the character '|' importing from XML

You found an error in the program ? Report it here
Post Reply
oxy42
Posts: 2
Joined: 2005-12-22 21:24:55

problem with the character '|' importing from XML

Post by oxy42 »

here is a sample from my xml file :
<Movie Number="3" Source="lost season2" MediaLabel="Nouveau nom" Date="28/11/2005" OriginalTitle="lost season2|Lost S02E06".......

When importing the xml file in AMC the pipe character is replaced by strange square.
any idea ? solution ?
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Not a bug, it is the way the program handles the XML files:
The "|" is currently used as linebreak for storing movies in XML.
The strange square is a linebreak displayed by a text field that does not support more than 1 line.
In a future version I will put info in CDATA sections probably, to avoid the need of a special character for linebreaks.
Until then, you can use all the characters except the "|" :p
oxy42
Posts: 2
Joined: 2005-12-22 21:24:55

Post by oxy42 »

my problem is that i am using the DB for xlobby and xlooby uses the character | to create subcategories (for TV shows)
I will look for an alternative in xlobby.
dalanik
Posts: 11
Joined: 2006-11-08 12:44:40

Post by dalanik »

Ha, ha, just been playing with XML export and bumped into this one... :-)

The thing is that my DB is becoming quite large, so I thought I'd use XML with extermal pictures, and it all works fine except the | character, which I use to separate levels in XLobby...

Anyway - what is the recommended maximum size of the AMC database? mine's around 80Mb...

Is that too much?
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

You mean for the .amc file? The only problem is that the whole file is loaded in memory.
You can also have external pictures with a .amc file actually.
HappyTalk
Posts: 19
Joined: 2006-11-02 23:44:37

Post by HappyTalk »

I just discovered this one too :( I had been talking to MyFilms guy on MediaPortal with intention of using | as a multi-filename seperator but realised after testing that you use it for CR/LF which on single line fields causes problems. Ironically, I text searched the xml of my ANT db and didn't have any |'s. I can see that it might be used in the description & comments listbox fields, but not in the other fields.
Beaker
Posts: 12
Joined: 2006-07-21 08:29:35

Post by Beaker »

If i make a carriage return in the description field (or actors), and exporting it to XML, that CR is converted to a |.

Thats pretty annoying when i open it on my webtrack site..

Is there any workaround on that ??

Regards, Beaker
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Well, everything about that is said above...
For Webtrack, you have to configure the replacement of "|" to linebreaks or <br> I suppose.
Post Reply