Kodi Community Forum
[RELEASE] RecentlyAdded Script (RecentlyAdded.py) Recently Added for Skins / Skinners - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300)
+---- Thread: [RELEASE] RecentlyAdded Script (RecentlyAdded.py) Recently Added for Skins / Skinners (/showthread.php?tid=55907)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


- jackthegroove - 2010-07-25

mcborzu Wrote:10.5 should be using:

<onfocus>XBMC.RunScript(script.recentlyadded,limit=5&amp;albums=True)</onfocus>

Try using that and see if it helps...

It also works the way like you say, but when i add "&amp;unplayed=True&amp;totals=True" it's broken again.

PS: i'm using Shade skin.

Are there perhaps some prerequisites for using unplayed or totals?


- MaDDoGo - 2010-07-26

Hi,

about random selecting, is episode random a random of all the episodes (seen and unseen) or a random of the first unseen episode of a show?

Thanks.


- Hitcher - 2010-07-26

All episodes from all shows.


- MaDDoGo - 2010-07-26

ok, thanks!


Script Fails RecentlyAdded.py - buddiemac - 2010-08-09

I have a script failing while in the video tab. This Happens when I am updating the media library when using the scrapers, then click the right mouse button to exit the mode.

The Script that is failing is RecentlyAdded.py. I am not sure why this has started, wondering if there is a corrupted file.

I am using the Skin Transparent!. The reason that I mention the skin is that in the Skin directory under scripts a version of this file exists - I do not see this file under a script directory of any other skins.

My log file has this:

16:36:14 T:140317571405584 M:972845056 NOTICE: File "/home/deric/.xbmc/skin/Transparency!/scripts/RecentlyAdded.py", line 133, in _fetch_totals
16:36:14 T:140317571405584 M:972845056 NOTICE: self.WINDOW.setProperty( "TVShows.Watched" , tvshows_totals[ 2 ] or "" )
16:36:14 T:140317571405584 M:972845056 NOTICE: IndexError
16:36:14 T:140317571405584 M:972845056 NOTICE: :
16:36:14 T:140317571405584 M:972845056 NOTICE: list index out of range
16:36:14 T:140317571405584 M:972845056 ERROR: Scriptresult: Error


- buddiemac - 2010-08-10

I have this problem resolved. The solution was to removed my video sources and then re-add them. Once I did this the script error did not reoccur and scrapping issues in Library mode resolved.Nod


How can you add more recently added to home screen? - cruzannavy - 2010-12-12

Ive been trying for some time with no luck adding more recently added movies and tv shoes to the home screen. can anyone point me in the direction of how i would do this and what files i need to modify. i simply want to display about 10 recently added movies or tvshows. if there is any more info you need ill provide that. but ive searched the forum and tweaked some files and used the wiki with no luck thanks in advance.

I'm using RC2 and the default skin confluence. i dont know what else would be relevant or needed to help me out. thank you


- filigran - 2010-12-12

cruzannavy Wrote:Ive been trying for some time with no luck adding more recently added movies and tv shoes to the home screen. can anyone point me in the direction of how i would do this and what files i need to modify. i simply want to display about 10 recently added movies or tvshows. if there is any more info you need ill provide that. but ive searched the forum and tweaked some files and used the wiki with no luck thanks in advance.

I'm using RC2 and the default skin confluence. i dont know what else would be relevant or needed to help me out. thank you

Edit: I had nothing better to do, so I whipped something up for you. Do the first two changes below (Home.xml and Startup.xml (if you use that function)), backup your IncludesHomeRecentlyAdded.xml file and replace with the contents of this link:
http://pastebin.com/Lme2MeKs (use the "download" link to the right and overwrite your old one).

Before:
Image

After:
Image

I also edited the way the posters work, to make them scroll through as you scroll the list.

I hope it works (does here, but you never know). Smile

1. Open up skin.confluence/720p/Home.xml in a text editor, and go to line 719, part of this control:
Code:
<control type="button" id="8999">
    <description>Run Recently added</description>
    <posx>-20</posx>
    <posy>-20</posy>
    <width>1</width>
    <height>1</height>
    <label>-</label>
    <font>-</font>
    [b]<onfocus>XBMC.RunScript(script.recentlyadded,limit=4)</onfocus>[/b]
    <onfocus>SetFocus(9000)</onfocus>
    <texturenofocus>-</texturenofocus>
    <texturefocus>-</texturefocus>
    <visible>Skin.HasSetting(homepageHideRecentlyAdded)</visible>
</control>

The bold part is what needs changing (line 719). The 'limit' controls the number of items fetched. Increase this to 10 and you get ten items. Easy as pie. Smile

2. There is also a line in skin.confluence/720p/Startup.xml that might need changing, if you update your library on startup:
Code:
<control type="button" id="9">
    <description>Trigger to Auto run the Latest media python after a 1 min delay if scan on startup is enabled</description>
    [b]<onfocus>XBMC.AlarmClock(UpdateRecentAdded,XBMC.RunScript(script.recentlyadded,limit=4),1,true)</onfocus>[/b]
    <onfocus>SetFocus(10)</onfocus>
    <texturenofocus>-</texturenofocus>
    <texturefocus>-</texturefocus>
    <visible>system.getbool(videolibrary.updateonstartup) + !Skin.HasSetting(homepageHideRecentlyAdded)</visible>
</control>

Same thing here, edit the bold part (line 7 of the file).


- cruzannavy - 2010-12-13

Thank you , i have been trying to get that to work. it worked on my laptop perfectly now i just have to edit the file on my media center and it hopefully works there too Smile 2 questions though.
1. this still updates after i run an update on my library correct ( i guess i could just down load something and see if it does) meaning i dont have to shut down xbmc and reopen it for it to update.
2. to get the tv shows to display 10 do i only need to add more of these "The quote below" to make it to 10? or are there additional things to do. Thank you for all your help. the movie worked great but i would like 10 tv shows aswell. i know i know never satisfied lol, but i truly appreciate this last bit for the tv shows
"<item id="1">
<label>$INFO[Window.Property(LatestEpisode.1.EpisodeTitle)]</label>
<label2>$INFO[Window.Property(LatestEpisode.1.ShowTitle)] - $INFO[Window.Property(LatestEpisode.1.EpisodeNo)]</label2>
<onclick>PlayMedia($INFO[Window.Property(LatestEpisode.1.Path)])</onclick>
<icon>-</icon>
<thumb>$INFO[Window.Property(LatestEpisode.1.Thumb)]</thumb>
</item>"


- cruzannavy - 2010-12-13

or does it take a little more editing of the IncludesHomeRecentlyAdded.xml to get the position and size of the box etc to work. i dont know what changes u made to it, causes i replaced it with the download like u suggested and it worked great! thanks again!


- Hitcher - 2010-12-13

Just so you know Alaska Revisited uses 10 recently added items by default.


What about Recently Added Trailers? - michaeldecharon - 2010-12-23

I was thinking... What about Recently Added Trailers on your homescreen?

In stead of the recently added movies, also recently added trailers from Apple Movie Trailer Lite.

Can this be done? Is it hard to change the script to my needs?

Any help is welcome Laugh


- ppic - 2010-12-23

it can be done yes.


- cruzannavy - 2010-12-23

That would be a nice feature...


- bossanova808 - 2011-01-07

What can one do if this script is crashing (see here).