Kodi Community Forum
Display year with title in library mode - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Confluence (https://forum.kodi.tv/forumdisplay.php?fid=125)
+---- Thread: Display year with title in library mode (/showthread.php?tid=80616)



Display year with title in library mode - DesktopMan - 2010-09-07

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.


RE: Display year with title in library mode - ribtin - 2013-12-12

Hi

I came to this forum searching for a way to achieve this. Did you ever figure it out?


RE: Display year with title in library mode - Arzk - 2013-12-13

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


RE: Display year with title in library mode - ribtin - 2013-12-13

I want to show the (year) with all titles, so renaming a few thousand titles is not a good solution.


RE: Display year with title in library mode - Arzk - 2013-12-13

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