Request: Page and Item count in Fanart view
#1
Hi ronie,
I realize this may not be for everyone but is it possible to add a page count and item count in the fanart view. I looked at your code by comparing the List view and the Fanart view but could not located the proper code. If it is not possible or you don't like the idea, could you tell me which code does it.

Here's a mockup of what I am looking for:

Image

MacMini 2.3gHz i7, OS X 10.13.6
Running Kodi 18.9
Reply
#2
jpf55 Wrote:Hi ronie,
I realize this may not be for everyone but is it possible to add a page count and item count in the fanart view. I looked at your code by comparing the List view and the Fanart view but could not located the proper code. If it is not possible or you don't like the idea, could you tell me which code does it.

Here's a mockup of what I am looking for:

Image

look up <include name="CommonFileCount"> in Includes.xml,
that's the code you need.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
ronie Wrote:look up <include name="CommonFileCount"> in Includes.xml,
that's the code you need.

I found them, all 13 of them but I feel like an idiot but I can't figure out how to add the routine to the fanart view. Sad

MacMini 2.3gHz i7, OS X 10.13.6
Running Kodi 18.9
Reply
#4
put this code in MyVideoNav.xml, at the end, right before the </controls> line:
Code:
        <control type="grouplist">
            <posx>455</posx>
            <posy>690</posy>
            <width>810</width>
            <height>30</height>
            <align>right</align>
            <orientation>horizontal</orientation>
            <itemgap>0</itemgap>
            <visible>Control.IsVisible(50)</visible>
            <control type="label">
                <description>Page Count Label</description>
                <width min="10" max="250">auto</width>
                <height>30</height>
                <aligny>center</aligny>
                <font>font-20</font>
                <textcolor>white</textcolor>
                <label>$LOCALIZE[31024] $INFO[Container.CurrentPage]/$INFO[Container.NumPages]</label>
            </control>
            <control type="image">
                <width>29</width>
                <height>30</height>
                <texture>dot.png</texture>
            </control>
            <control type="label">
                <description>Item Count Label</description>
                <width min="10" max="250">auto</width>
                <height>30</height>
                <aligny>center</aligny>
                <font>font-20</font>
                <textcolor>white</textcolor>
                <label>$INFO[Container.NumItems] $LOCALIZE[31025]</label>
            </control>
        </control>
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#5
ronie, you are a prince, thank you thank, you thank you

It works like a charm and is unobtrusive at the bottom right so as not to hinder the fanart view.

Will you include this modification in your standard release?

MacMini 2.3gHz i7, OS X 10.13.6
Running Kodi 18.9
Reply
#6
jpf55 Wrote:Will you include this modification in your standard release?

not sure...haven't made up my mind yet.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#7
ronie Wrote:not sure...haven't made up my mind yet.

I always switched views in order to get item count but this is so much better.

I will keep the code in a safe place in case you decide not to add it to the standard release.

Thanks again
Nod

MacMini 2.3gHz i7, OS X 10.13.6
Running Kodi 18.9
Reply
#8
Hi ronie,
I have another challenge for you, as if you had nothing better to do...
Page and Item count work really well and my 6 clients(family) love it but there is one quirk.
A while back I had changed the number of recently added titles to 35 but lets say there are actually 100 unwatched titles, it is normal that the list shows 35 items, that's what I asked for but if I watch a movie, the number of unwatched tiltles goes down to 99 and the number on unwatched recently added titles goes down to 34... shouldn't it be 35 until there are actually less than 35 left?

Your thoughts are always appreciated.

MacMini 2.3gHz i7, OS X 10.13.6
Running Kodi 18.9
Reply
#9
jpf55 Wrote:Hi ronie,
I have another challenge for you, as if you had nothing better to do...
Page and Item count work really well and my 6 clients(family) love it but there is one quirk.
A while back I had changed the number of recently added titles to 35 but lets say there are actually 100 unwatched titles, it is normal that the list shows 35 items, that's what I asked for but if I watch a movie, the number of unwatched tiltles goes down to 99 and the number on unwatched recently added titles goes down to 34... shouldn't it be 35 until there are actually less than 35 left?

Your thoughts are always appreciated.

no idea. item & page counts are provided by xbmc.
not skin related ;-)
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#10
ronie Wrote:no idea. item & page counts are provided by xbmc.
not skin related ;-)

After re-reading my post, I realized it is perfectly normal behaviour, the variable is called RecentlyAdded not UnwatchedRecentlyAdded Oo
No matter if you watch them or not, they are the most recently added.

Sorry to have wasted your time Blush

Addendum: Writing the last line got me thinking Shocked so I went to check and sure enough it is possible and it works.

Go to Movies, View fanart, Select Unwatched Videos and Set the sort order to Dated Added and BINGO, another satisfied customer Wink

MacMini 2.3gHz i7, OS X 10.13.6
Running Kodi 18.9
Reply

Logout Mark Read Team Forum Stats Members Help
Request: Page and Item count in Fanart view0