[RESOLVED] [MAC] Some entries showing date/genre and other not

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
winestock Offline
Fan
Posts: 442
Joined: Jan 2011
Reputation: 5
Post: #1
Ronie,

For XBMC 11.0, I added to the following code to View-Fanart.xml after the line <include name="Fanart-Videos_Extras">:
Code:
            <control type="image">
                <posx>0</posx>
                <posy>485</posy>
                <width>875</width>
                <height>275</height>
                <texture border="10">underlay.png</texture>
                <visible>!Skin.HasSetting(Enable_Movies_Media_Flags)</visible>
            </control>
            <include condition="Skin.HasSetting(HateTransparency)">T-Underlay15</include>
            <control type="image">
                <posx>0</posx>
                <posy>520</posy>
                <width>875</width>
                <height>240</height>
                <texture border="10">underlay.png</texture>
                <visible>Skin.HasSetting(Enable_Movies_Media_Flags)</visible>
            </control>
            <control type="label">
                <posx>257</posx>
                <posy>505</posy>
                <width>617</width>
                <height>30</height>
                <font>font-30</font>
                <textcolor>blue</textcolor>
                <shadowcolor>black</shadowcolor>
                <align>left</align>
                <aligny>center</aligny>
                <label>$INFO[ListItem.OriginalTitle]</label>
                <visible>!stringcompare(ListItem.OriginalTitle,ListItem.Title)</visible>
            </control>
            <control type="label">
                <posx>257</posx>
                <posy>538</posy>
                <width>617</width>
                <height>30</height>
                <font>font-30</font>
                <textcolor>blue</textcolor>
                <shadowcolor>black</shadowcolor>
                <align>left</align>
                <aligny>center</aligny>
                <label>$INFO[ListItem.Title]</label>
            </control>
            <control type="label">
                <posx>257</posx>
                <posy>538</posy>
                <width>617</width>
                <height>30</height>
                <font>font-30</font>
                <textcolor>blue</textcolor>
                <shadowcolor>black</shadowcolor>
                <align>left</align>
                <aligny>center</aligny>
                <label>$INFO[ListItem.label]</label>
                <visible>IsEmpty(ListItem.Title) + !stringcompare(ListItem.Label,..)</visible>
            </control>
            <control type="label">
                <posx>257</posx>
                <posy>570</posy>
                <width>617</width>
                <height>20</height>
                <font>font-20</font>
                <textcolor>blue</textcolor>
                <shadowcolor>black</shadowcolor>
                <align>left</align>
                <aligny>center</aligny>
                <label>$INFO[ListItem.Year]  $INFO[ListItem.Duration]min  $INFO[ListItem.Genre]</label>
                <visible>!IsEmpty(ListItem.Duration)</visible>
            </control>

And for the most part I get the date and genre showing up:
[Image: ScreenShot2012-04-22at64613PM.png]

But for some reason some of the movie entries are not showing the date anf genre:
[Image: ScreenShot2012-04-22at64617PM.png]

If I look at the "Show Information" page thr date and genre information does show up:
[Image: ScreenShot2012-04-22at64622PM.png]

By the way, I am using files mode to access my movie entires.
I just figured out what is going on. This piece of code is the issue:
Code:
            <control type="label">
                <posx>257</posx>
                <posy>570</posy>
                <width>617</width>
                <height>20</height>
                <font>font-20</font>
                <textcolor>blue</textcolor>
                <shadowcolor>black</shadowcolor>
                <align>left</align>
                <aligny>center</aligny>
                <label>$INFO[ListItem.Year]  $INFO[ListItem.Duration] min  $INFO[ListItem.Genre]</label>
                <visible>!IsEmpty(ListItem.Duration)</visible>
            </control>

I have fixed the situation by adding the following:
Code:
            <control type="label">
                <posx>257</posx>
                <posy>570</posy>
                <width>617</width>
                <height>20</height>
                <font>font-20</font>
                <textcolor>blue</textcolor>
                <shadowcolor>black</shadowcolor>
                <align>left</align>
                <aligny>center</aligny>
                <label>$INFO[ListItem.Year]  $INFO[ListItem.Genre]</label>
                <visible>IsEmpty(ListItem.Duration)</visible>
            </control>

XBMC Frodo 12.3, Transparency Skin (5.0.9)
PogoPlug v4 running Arm Linux 3.15 as MySQL (mariadb) and media file server for XBMC
Mac OS X 10.9.4
2011 27" iMac 3.4 GHz Quad, 16GB RAM, 1TB HD, 256GB SSD
2009 2.0GHz MacMini, 4GB RAM, 320GB HD
2009 17" Macbook Pro, 8GB RAM, 500GB HD
(This post was last modified: 2012-04-23 01:15 by winestock.)
find quote
ronie Offline
Team-Kodi Member
Posts: 9,198
Joined: Jan 2009
Reputation: 158
Post: #2
you can do it with a single label control as well:

Code:
<control type="label">
     <posx>257</posx>
     <posy>570</posy>
     <width>617</width>
     <height>20</height>
     <font>font-20</font>
     <textcolor>blue</textcolor>
     <shadowcolor>black</shadowcolor>
     <align>left</align>
     <aligny>center</aligny>
     <label>$INFO[ListItem.Year] $INFO[ListItem.Duration, , min ] $INFO[ListItem.Genre]</label>
</control>

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote