This project is read-only.
1
Vote

Country tags not exported to .nfo file

description

Hi,

In version 1.3.9.2, country tags are not exported to .nfo file.
I can reproduce the issue with any film e.g. Empire of the Sun and any collector able to feed "Countries".
Note that I saw it happen with Trailer as well.

Why this is an issue: I post process .nfo files via xslt to generate info.txt files similar to the ones "WDTV Image Grabber" makes.

Example:
IMDB correctly grabs "U.S.A." but no <country> tag is generated (as Media Companion) would do.
As a result, the post-processed file misses "Country":

Title: Empire of the Sun
Original title: Empire of the Sun
IMDB: tt0092965
Year: 1987
Country:
Categories: Drama / History / War
Runtime: 153
Rating: 7.8
Type: Movie

Director: Steven Spielberg

Tagline: To survive in a world at war, he must find a strength greater than all the events that surround him.

Overview: Based on J. G. Ballard's autobiographical novel, tells the story of a boy, James Graham, whose privileged life is upturned by the Japanese invasion of Shanghai, December 8, 1941. Separated from his parents, he is eventually captured, and taken to Soo Chow confinement camp, next to a captured Chinese airfield. Amidst the sickness and food shortages in the camp, Jim attempts to reconstruct his former life, all the while bringing spirit and dignity to those around him.

Cast: Christian Bale, John Malkovich, Miranda Richardson, Nigel Havers, Joe Pantoliano, Leslie Phillips, Masatô Ibu, Emily Richard, Rupert Frazer, Peter Gale, Takatarô Kataoka, Ben Stiller, David Neidorf, Ralph Seymour, Robert Stephens

comments

dam_ged wrote Jun 13, 2014 at 11:02 AM

Suggested Fix:

Changes in: export_xbmc.xslt

[...]
  <xsl:apply-templates select="country"/>
[...]
<xsl:template match="country">
<xsl:element name="country">
  <xsl:for-each select="name">
    <xsl:value-of select="."/>
    <xsl:if test="position()!=last()">
      <xsl:text>, </xsl:text>
    </xsl:if>
  </xsl:for-each>
</xsl:element>
</xsl:template>