Recently Added Script - More than 3 items
#1
Hi Ronie,

Excellent work with Transparency. It's an amazing skin and now my favorite Nod

A question, how we can modify "RecentlyAdded (home screen)" option to include more than 3 items (movies, tvshows, albums)??, eg: 10 items it's perfect for me.

Regards
Reply
#2
there's no simple user setting for it, so it would involve adding/modifying a lot of code in Includes_Home.xml

here's the parts that need to be altered:

<include name="recentlyaddedscript">
- set limt to 10

<include name="recentlyfanartmovies">
<include name="recentlyfanartepisodes">
<include name="recentlyfanartalbums">

- define fanart images for 10 items

<include name="RecentlyAddedMovies">
<include name="RecentlyAddedEpisodes">
<include name="RecentlyAddedAlbums">

- define 10 items in the <content> section

after making these mods, the recently addes list on the home screen will still show 3 items, but you can scroll through the list to see the other ones.
if you want all 10 items to be visible at the same time (larger list), some more code changes will be needed:
- adjusting size of the list
- reposition the list
- adjust size and position of the background image
- anything i forgot...
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
thanks ronnie, works perfectly!
Reply
#4
ronie Wrote:there's no simple user setting for it, so it would involve adding/modifying a lot of code in Includes_Home.xml

here's the parts that need to be altered:

<include name="recentlyaddedscript">
- set limt to 10

<include name="recentlyfanartmovies">
<include name="recentlyfanartepisodes">
<include name="recentlyfanartalbums">

- define fanart images for 10 items

<include name="RecentlyAddedMovies">
<include name="RecentlyAddedEpisodes">
<include name="RecentlyAddedAlbums">

- define 10 items in the <content> section

after making these mods, the recently addes list on the home screen will still show 3 items, but you can scroll through the list to see the other ones.
if you want all 10 items to be visible at the same time (larger list), some more code changes will be needed:
- adjusting size of the list
- reposition the list
- adjust size and position of the background image
- anything i forgot...

Thats nice ...
i will try to make this with 10 visible items

What file to edit for the list size and position and background image??

can you please piont to the file ??

Thanks
Colossus
Reply
#5
colossusr Wrote:Thats nice ...
i will try to make this with 10 visible items

What file to edit for the list size and position and background image??

can you please piont to the file ??

Thanks
Colossus

that's also in Includes_Home.xml.
the image name is gradient.png
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
#6
ronie Wrote:that's also in Includes_Home.xml.
the image name is gradient.png

Thanks for the reply ...

I have already mod the Includes_Home.xml adding buttons and functions to my like....

In that file

<include name="RecentlyAddedMovies">
<control type="group">
<posx>0</posx>
<posy>0</posy>
<include>homestatsinfo</include>

you are reffering to "homestatsinfo" ... where is this Huh
its another module Huh
Changing the posx and posy hase no effect on the list ... so i presume that this is done on the homestatsinfo module Huh?

is this right Huh

and where is the gradient.png file located Huh?
Thanks in advance for helping


colossus
Reply
#7
colossusr Wrote:Thanks for the reply ...

I have already mod the Includes_Home.xml adding buttons and functions to my like....

In that file

<include name="RecentlyAddedMovies">
<control type="group">
<posx>0</posx>
<posy>0</posy>
<include>homestatsinfo</include>

you are reffering to "homestatsinfo" ... where is this Huh
its another module Huh
Changing the posx and posy hase no effect on the list ... so i presume that this is done on the homestatsinfo module Huh?

is this right Huh

and where is the gradient.png file located Huh?
Thanks in advance for helping


colossus
homestatsinfo refers to: <include name="homestatsinfo">
it's also in Includes_Home.xml and only defines the zoom/fade animation.

also check this part in Home.xml:
Code:
<control type="grouplist" id="5047">
    <posx>680</posx>
    <posy>490</posy>
    <onright>20</onright>
    <include condition="!Skin.HasSetting(HomepageRecentMovies)">RecentlyAddedMovies</include>
    <include condition="!Skin.HasSetting(HomepageRecentTVShows)">RecentlyAddedTVShows</include>
    <include condition="!Skin.HasSetting(HomepageRecentAlbums)">RecentlyAddedAlbums</include>
</control>
if you want to adjust x and y values.
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
#8
Thanks alot m8....

the home.xml file editing .....that did the trick...

I fixed my home screen with 8 recent items in the movies and tv show now...


Thanks alot for the help

colossus
Reply
#9
colossusr Wrote:the home.xml file editing .....that did the trick...
I fixed my home screen with 8 recent items in the movies and tv show now...

Hi could you post a screen shot and your mod code please

Thanks

MacMini 2.3gHz i7, OS X 10.13.6
Running Kodi 18.9
Reply
#10
jpf55 Wrote:Hi could you post a screen shot and your mod code please

Thanks

Here you go ....

I hope this is the correct way for photos (never before uploaded a photo to the forum)

Image

Image

Image
colossus
Reply
#11
colossusr Wrote:Here you go ....

I hope this is the correct way for photos (never before uploaded a photo to the forum)

[img]

[img]

[img]
colossus

looks great colossusr... would it be possible for you to post your code mods?
Reply
#12
Thats exactly what i was looking for to colossus - would you mind posting your code please
Reply
#13
Not Working. See below. Any Moderator, please delete this post because I don't know how to.
Reply
#14
OK... NOW I got it.

1. Change includes_Home.xml: http://pastebin.com/f10cdea74. My changes are highlighted.

2. Make this change in Home.xml:

Code:
<control type="grouplist" id="5047">
    <posx>680</posx>
    <posy>335</posy>
    <onright>20</onright>
    <include condition="!Skin.HasSetting(HomepageRecentMovies)">RecentlyAddedMovies</include>
    <include condition="!Skin.HasSetting(HomepageRecentTVShows)">RecentlyAddedTVShows</include>
    <include condition="!Skin.HasSetting(HomepageRecentAlbums)">RecentlyAddedAlbums</include>
</control>

Image

Image

Image

I also made the thumbs bigger because I thought they looked awkward with the increased height and no increased width.

Finally, I changed the TV Episode thumbs style and put them in the dvd case. I didn't like the screen capture style. I'd like to replace the episode thumbs with season thumbs if it's possible. I haven't figured out how yet though (Is this a change made in RecentlyAdded.py?). If anyone can help me on that one that'd be awesome.

If you don't want to change the TV show thumbs then ONLY add the additional <content> items within <include name="RecentlyAddedTVShows">.

Code:
<item id="4">
...
</item>
...
...
...
<item id="8">
...
</item>

The same is also true for <include name="RecentlyAddedMovies"> and <include name="RecentlyAddedAlbums"> if you do not want to resize the thumbs. You'll also have to adjust the positioning of the list and the height of gradient.png if you make these changes to my script.
Reply
#15
Sorry for being a noob here but will editing the home.xml to this

<control type="grouplist" id="5047">
<posx>680</posx>
<posy>335</posy>
<onright>20</onright>
<include condition="!Skin.HasSetting(HomepageRecentMovies)">RecentlyAddedMovies</include>
<include condition="!Skin.HasSetting(HomepageRecentTVShows)">RecentlyAddedTVShows</include>
<include condition="!Skin.HasSetting(HomepageRecentAlbums)">RecentlyAddedAlbums</include>
</control>

Give me the result you have shown in the screenshots or Is more involved than that to edit size of thumbs?

Thanks
Reply

Logout Mark Read Team Forum Stats Members Help
Recently Added Script - More than 3 items0