Kodi Community Forum

Full Version: Display year with title in library mode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
See my earlier (non skin specific) thread for the description:

http://forum.xbmc.org/showthread.php?tid=66828

I think this would make a very useful configuration option in confluence.
Hi

I came to this forum searching for a way to achieve this. Did you ever figure it out?
Isn't it easiest to edit the movie titles via context menu for movies needing the year in the title? As the linked thread says, it's easy to add the years in every item, but much harder for duplicate titles only
I want to show the (year) with all titles, so renaming a few thousand titles is not a good solution.
Ok, then edit the ViewsVideoLibrary.xml and find the view you use. for example for the Media Info 2 (=MediaListView3) view change in the main list
Code:
<control type="label">
                                                <posx>10</posx>
                                                <posy>0</posy>
                                                <width>520</width>
                                                <height>40</height>
                                                <font>font13</font>
                                                <textcolor>grey2</textcolor>
                                                <selectedcolor>selected</selectedcolor>
                                                <align>left</align>
                                                <aligny>center</aligny>
                                                <label>$INFO[ListItem.Label]</label>
                                        </control>
to something like
Code:
<control type="label">
                                                <posx>10</posx>
                                                <posy>0</posy>
                                                <width>520</width>
                                                <height>40</height>
                                                <font>font13</font>
                                                <textcolor>grey2</textcolor>
                                                <selectedcolor>selected</selectedcolor>
                                                <align>left</align>
                                                <aligny>center</aligny>
                                                <label>$INFO[ListItem.Label] ($INFO[ListItem.Year])</label>
                                                <visible>Container.Content(Movies)</visible>
                                        </control>
                                        <control type="label">
                                                <posx>10</posx>
                                                <posy>0</posy>
                                                <width>520</width>
                                                <height>40</height>
                                                <font>font13</font>
                                                <textcolor>grey2</textcolor>
                                                <selectedcolor>selected</selectedcolor>
                                                <align>left</align>
                                                <aligny>center</aligny>
                                                <label>$INFO[ListItem.Label]</label>
                                                <visible>!Container.Content(Movies)</visible>
                                        </control>
Do this for both the itemlayout and focusedlayout and the list items should be like "Movie name (2009)". I didn't test this, but this is the principle (backup before doing anything). You could also add the year to label2 and replace the rating for movies by using similar <visible> tags. Or sort the movies by year as I do, so the year is visible without any customization Smile