Thumbgen XML request / Date Problem

Hello@all

I had a Problem with my Date function, I make the xml for the movieinfo with Thumbgen, he saves it in this format :

“18.07.2003”

i request the date of the movie in the gallery view with “@@year” …

BUT the problem is the player cant read the format he want to have it in 

“2007-09-27”

Iam german and my Movie information too, and this is the problem, thumbgen makes the german date format, but the player wants the englisch format…

any ideas what to do?

THX

Hm… I’ll think about solving that somehow. Thanks for reporting.

hey

thx for the reply, but gives nothing to do without a fix of thumbgen?

another issue is the bug for “&” symbol is back in the “new FW” XML for movie title… just a heads up

What was the “&” bug about?  Incorrect handling of the & symbol in a movie title?

@TG,

I believe what he’s talking about is it using “amp&”, so if you have a movie like “Lilo & Stich” it will generate as

Lilo ;amp& Stich

But that’s the only way I can generate a valid xml :slight_smile:  

It’s not read properly on the device, or?

yes “Lilo & Stich” in TG generates XML with Lilo ;amp& Stich

the hub reads it as is; “Lilo ;amp& Stich”

 i have not tested to see what direct scraping generates as

Just tested, the WDTV Live Hub’s internal scraper correctly scrapes the movie “Lilo & Stitch”

<?xml version="1.0" encoding="UTF-8"?>
11544tt0275847Lilo & StitchPG2002-06-21857.9 [http://www.youtube.com/watch?v=hu9bERy7XGY](http://www.youtube.com/watch?v=hu9bERy7XGY)AnimationFamilyComedyWalt Disney Animation StudiosA lonely Hawaiian girl named Lilo is being raised by her older sister, Nani, after their parents die -- under the watch of social worker Cobra Bubbles. When Lilo adopts a funny-looking dog and names him "Stitch," she doesn't realize her new best friend is a wacky alien created by mad scientist Dr. Jumba.A lonely Hawaiian girl named Lilo is being raised by her older sister, Nani, after their parents die -- under the watch of social worker Cobra Bubbles. When Lilo adopts a funny-looking dog and names him "Stitch," she doesn't realize her new best friend is a wacky alien created by mad scientist Dr. Jumba.Chris SandersDean DeBloisDaveigh ChaseLilo (voice)Chris Sanders'Stitch' (voice)Tia CarrereNani (voice)David Ogden StiersDr. Jumba Jookiba (voice) [http://cf2.imgobject.com/t/p/w185/7lqDXTupPUeIM9KJzdNGxQ8qQwL.jpg](http://cf2.imgobject.com/t/p/w185/7lqDXTupPUeIM9KJzdNGxQ8qQwL.jpg) [http://cf2.imgobject.com/t/p/w185/b3ywmXseoS6PkmYBHajaRxEzVhI.jpg](http://cf2.imgobject.com/t/p/w185/b3ywmXseoS6PkmYBHajaRxEzVhI.jpg) [http://cf2.imgobject.com/t/p/w185/9nGhlpSKc3rlSTuOBJUL7z36wpD.jpg](http://cf2.imgobject.com/t/p/w185/9nGhlpSKc3rlSTuOBJUL7z36wpD.jpg) [http://cf2.imgobject.com/t/p/w185/3VBJ9LODZ9s3EKue1iYvf3JZZX1.jpg](http://cf2.imgobject.com/t/p/w185/3VBJ9LODZ9s3EKue1iYvf3JZZX1.jpg) [http://cf2.imgobject.com/t/p/w185/1ehSq33zCkXNxWmZgVvgbAK6Iym.jpg](http://cf2.imgobject.com/t/p/w185/1ehSq33zCkXNxWmZgVvgbAK6Iym.jpg) [http://cf2.imgobject.com/t/p/w185/4ILH0cxOel1l5ZIQgMNGWuhZhEE.jpg](http://cf2.imgobject.com/t/p/w185/4ILH0cxOel1l5ZIQgMNGWuhZhEE.jpg) [http://cf2.imgobject.com/t/p/w185/19gOfsD3TWqbIM51rHespqwxetW.jpg](http://cf2.imgobject.com/t/p/w185/19gOfsD3TWqbIM51rHespqwxetW.jpg) [http://cf2.imgobject.com/t/p/w185/x5oItvF2M40UR5iu1CKG8h2bc13.jpg](http://cf2.imgobject.com/t/p/w185/x5oItvF2M40UR5iu1CKG8h2bc13.jpg) [http://cf2.imgobject.com/t/p/w185/8R8BBFVzdJ2IUvnY160KeAWyA5P.jpg](http://cf2.imgobject.com/t/p/w185/8R8BBFVzdJ2IUvnY160KeAWyA5P.jpg) [http://cf2.imgobject.com/t/p/w185/88Wvzi4vdPK9cG59OmFfA5LGWrc.jpg](http://cf2.imgobject.com/t/p/w185/88Wvzi4vdPK9cG59OmFfA5LGWrc.jpg) [http://cf2.imgobject.com/t/p/w780/gss26usvT59v4bltFPVg49AiBFZ.jpg](http://cf2.imgobject.com/t/p/w780/gss26usvT59v4bltFPVg49AiBFZ.jpg) [http://cf2.imgobject.com/t/p/w780/u8vDwjzjKfWsMhAYjF9q6YZX1On.jpg](http://cf2.imgobject.com/t/p/w780/u8vDwjzjKfWsMhAYjF9q6YZX1On.jpg) [http://cf2.imgobject.com/t/p/w780/eC8TeqWgfyXi5gSkWwoRMh4Zd18.jpg](http://cf2.imgobject.com/t/p/w780/eC8TeqWgfyXi5gSkWwoRMh4Zd18.jpg) [http://cf2.imgobject.com/t/p/w780/12HtFEQLi4vz6Pe1bc6UAfsTuHS.jpg](http://cf2.imgobject.com/t/p/w780/12HtFEQLi4vz6Pe1bc6UAfsTuHS.jpg) [http://cf2.imgobject.com/t/p/w780/t9PwTmbAApMAXUbxJ8gbwuY7o9.jpg](http://cf2.imgobject.com/t/p/w780/t9PwTmbAApMAXUbxJ8gbwuY7o9.jpg)Lilo & Stitch 2: Stitch has a GlitchAnimation

Hm…thanks for verifying… It’s still strange as your xml is obviously invalid… 

Feel free to validate it yourself here:  http://www.xmlvalidation.com/

@TG

The reason the XML comes back as invalid is due to it expecting white space.

The xml isn’t actually invalid, it’s just that XML readers will show as having errors. But the HUB does not care that there’s no white space (between …></…) and will read the XML correctly.

You will actually get better feedback if you open an XML with XML Notepad 2007, it will tell you were and what errors are in a XML. But as I said the HUB doesn,'t see white space errors.

thumbgen wrote:
But that’s the only way I can generate a valid xml It’s not read properly on the device, or?

The issue isn’t with the XML, it’s with the translation of the “&” sign. If a movie use a title with the “&” in it, instead of generating the title with the “&” in it, it uses “;amp&”, so that if the name of the movie is “Jack & the Beanstalk”, instead of TG generating the title with just the “&” in it it use “;amp&”.

I believe this was an issue before, but had been corrected in a previous version, but has reemerged in the last couple of versions of TG

@thumbgen

Quote:

Hm…thanks for verifying… It’s still strange as your xml is obviously invalid… 

Feel free to validate it yourself here: http://www.xmlvalidation.com/

 

It’s not “Invalid” (as your ‘site’ suggests) … the Hub’s scraper generated it, and displays it fine.

 

Obviously, you don’t own a WDTV Live Hub otherwise you would see and test that the file is “Valid” for the device.

 

Anyone else care to try the Hub’s internal scraper and find it works fine ?

 

or… here’s the files i scraped earlier on the Hub …

Lilo & Stitch.zip  (contains the same Valid XML i posted, a dummy video file and a thumbnail jpg)

 

http://www.mediafire.com/?xhzrr3j3tc1zjfp

 

 

 

 

 

 

@JoeySmyth: Do I sense a touch of irony in your reply?

If the WD software loads that xml that does not mean it is a valid xml file. It may be valid for the WD device but it will not pass any xml validation check. And, tinywarble the problem is not the space, the problem is: “The entity name must immediately follow the ‘&’ in the entity reference.”

This is what XML specification says:

" The ampersand character (&) and the left angle bracket (<) MUST NOT appear in their literal form, except when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section.  If they are needed elsewhere, they MUST be escaped using either  numeric character references or the strings “&” and “<”  respectively".

But I guess it makes no sense to argue about an invalid xml being valid :slight_smile: If WD wants it that way, I’ll generate it that way…

@Joey,

I’ve already explained why it shows as an in valid file. It’s due to the fact that XML readers are expecting a “white space”.

Technically speaking, the XML is in an invalid format when you are talking about standard XML formats, it’s just that it’s not in an in valid format for the HUB because it doesn’t look for the “white space”.

And no TG doesn,‘t own a HUB’ he relies on those of us who do and use thumbgen to give him the info so that he can make it generate the way it is suppose to.

@thumbgen,
I understand the XML rule, but there are exceptions for XML file that contains third-party XML data with special characters.

Great, I’ll put the single & in the xml in the next release then :slight_smile: