Kodi Community Forum

Full Version: Add year to shift view
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Braz or any one who can help.

I am currently using shift view for a lot of my Mimic skin but one thing that is missing for me is having the year. I do not suppose anyone knows how that I can add the year so that it will look like

Movie Title (1986)
Genre

Cheers for any help given.
Open up View_57_Shift.xml and go to line 364.

Change the label control from this:

Code:
<control type="label">
    <left>0</left>
    <top>0</top>
    <width>1693</width>
    <height>42</height>
    <align>left</align>
    <font>font28_title</font>
    <textcolor>$VAR[ColorTextVar]</textcolor>
    <scroll>true</scroll>
    <label>$INFO[ListItem.Label]</label>
    <textoffsetx>30</textoffsetx>
</control>

To this:

Code:
<control type="label">
    <left>0</left>
    <top>0</top>
    <width>1693</width>
    <height>42</height>
    <align>left</align>
    <font>font28_title</font>
    <textcolor>$VAR[ColorTextVar]</textcolor>
    <scroll>true</scroll>
    <label>$INFO[ListItem.Label]$INFO[ListItem.Year, (,)]</label>
    <textoffsetx>30</textoffsetx>
</control>

Note you'll have to reapply this change after every skin update.
(2016-03-13, 03:39)braz Wrote: [ -> ]Change the label control from this:
Note you'll have to reapply this change after every skin update.

@braz Why not add that feature permanent?
I ask because yesterday i want to watch the movie 'The Hunger Games' the last one,but since no year it hard to find it.. Thank you for your hard work
Because you want year, but someone else wants rating, and still others want duration. Can't please everyone, so prefer to keep it clean and use the info dialog for all the extra details.
Sadly I cannot find anywhere in view_57_shift that says width 1693. I am using 2.3,0 on 15.2 isengard.

If I go to line 364 in brings me to this <font>font14_textbox4</font>

I just searched for <label>$INFO[ListItem.Label]</label> but again that was not found in the file.
The code snippets I posted are from the latest Mimic version on Github.

In your version it starts on line 333, see:

https://github.com/braz96/skin.mimic/blo..._Shift.xml
(2016-03-14, 17:37)braz Wrote: [ -> ]Because you want year, but someone else wants rating, and still others want duration. Can't please everyone, so prefer to keep it clean and use the info dialog for all the extra details.

I think year is more important than rating.look how nice it looks with years:

Quote:The Hunger Games (2012)
The Hunger Games: Catching Fire (2013)
The Hunger Games: Mockingjay – Part 1 (2014)
The Hunger Games: Mockingjay – Part 2 (2015)

Without:

Quote:The Hunger Games
The Hunger Games: Catching Fire
The Hunger Games: Mockingjay – Part 1
The Hunger Games: Mockingjay – Part 2
Please considering...Thanks
(2016-03-14, 21:15)braz Wrote: [ -> ]The code snippets I posted are from the latest Mimic version on Github.

In your version it starts on line 333, see:

https://github.com/braz96/skin.mimic/blo..._Shift.xml

Thanks for that works a treat, just to give some feedback but you have probably heard before. I just went into movies, and the movie title if it is long gets messed up in the studio logo.

I did try the latest version but I had enough of Jarvis as would not play certain episodes properly so switched back to 15.2 and all works good, I even tried 16.1 hoping things might be fixed but still no go.

Still at least with 15.2 I can play what I like so sticking with that for the time being.

Thanks for the help.
Just took another look at the labels in views. I see that the list views mostly have year and genre for the sublabel, while the panel views mostly just have genre. So I've added year to the sublabel on panel views, changes now available on github.