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


- Nuka1195 - 2010-03-20

thanks charrua, most skinners have there own copy now, so i'll just leave your link here for them.

i've made other changes, i'm not sure anybody wants.

if a developer reads this. i notice calling executehttpapi() from a plugin, there is a 1.5 second delay. running the same call from scripts window take .02 seconds. 2/100ths. i can supply a test script if you want.


- charrua - 2010-03-20

Nuka1195 Wrote:thanks charrua, most skinners have there own copy now, so i'll just leave your link here for them.

Thank you Nuka, you did all the hard work. I've just made a minor change.
I took the liberty to place the download link in my previous post, because I was asked to by one of the skinners, but if you prefer just replace it with your own.


- igotdvds - 2010-04-06

Does latestEpisode.1.Fanart work for anyone?


- pilluli - 2010-04-11

Nuka1195 Wrote:if a developer reads this. i notice calling executehttpapi() from a plugin, there is a 1.5 second delay. running the same call from scripts window take .02 seconds. 2/100ths. i can supply a test script if you want.

Nuka1195, have you found anything about this delay problem? I found the RecentlyAdded script is very slow on recent svn builds (before the addon merge) and I can see slowly updating movies and tvshows on the home screen Sad

Also, I'm sure others have found out, the script does not work in current svn as xbmc complains of it not being a addon and not finding it....


[BUG] recentlyadded.py on homepage and 2 profiles. - handsomepete - 2010-04-13

I have one profile for me and one for my kids. whenever i update the library, the recentlyadded script adds my kids movies too.

going into recentlyadded through movies>recently added is fine. Its only the script on the homepage.

using r28256 on xbmc live


- mindweaver - 2010-05-24

charrua Wrote:As I'd posted before the forum db corruption, the view tvshowview doesn't exist in the db anymore since svn r28114.
You should update the queries in RecentlyAdded.py that use that view.

If anybody is interested, I already modified the script not to use tvshowview.
Here is the link to download the updated version:
RecentlyAdded.py

Hey, I tried the one you linked to with XBMC SVN 30442. It doesn't seem to work. I get the following error:

Code:
13:26:53 T:4408 M:289116160    INFO: -->Python script returned the following error<--
13:26:53 T:4408 M:289112064   ERROR: Error Type: exceptions.ValueError
13:26:53 T:4408 M:289112064   ERROR: Error Contents: invalid literal for int():
13:26:53 T:4408 M:289054720   ERROR: Traceback (most recent call last):
                                              File "C:\Users\John Tilly\AppData\Roaming\XBMC\addons\skin.aeon65\extras\RecentlyAdded.py", line 260, in ?
                                                Main()
                                              File "C:\Users\John Tilly\AppData\Roaming\XBMC\addons\skin.aeon65\extras\RecentlyAdded.py", line 73, in __init__
                                                self._fetch_tvshow_info()
                                              File "C:\Users\John Tilly\AppData\Roaming\XBMC\addons\skin.aeon65\extras\RecentlyAdded.py", line 199, in _fetch_tvshow_info
                                                self.WINDOW.setProperty( "LatestEpisode.%d.EpisodeNo" % ( count + 1, ), "s%02de%02d" % ( int( fields[ 13 ] ), int( fields[ 14 ] ), ) )
                                            ValueError: invalid literal for int():
13:26:53 T:4408 M:289054720    INFO: -->End of Python script error report<--



- ronie - 2010-05-24

mindweaver Wrote:Hey, I tried the one you linked to with XBMC SVN 30442. It doesn't seem to work.

latest version of the recentlyadded script is hosted here:

http://mirrors.xbmc.org/addons/dharma-pre/script.recentlyadded/


- theuni - 2010-05-24

FYI everything hosted there is in serious flux and subject to change at any time. It's being used for internal testing.

TheUni


- mindweaver - 2010-05-24

ronie Wrote:latest version of the recentlyadded script is hosted here:

http://mirrors.xbmc.org/addons/dharma-pre/script.recentlyadded/

The latest version gives me this:

22:10:48 T:3792 M:402337792 WARNING: ADDON: cpluff: 'Could not return information about unknown plug-in special://addons/script.recentlyadded/default.py.'

Any ideas?


- ronie - 2010-05-24

mindweaver Wrote:The latest version gives me this:

22:10:48 T:3792 M:402337792 WARNING: ADDON: cpluff: 'Could not return information about unknown plug-in special://addons/script.recentlyadded/default.py.'

Any ideas?

yep, try the one from the T! svn:
http://code.google.com/p/transparency-xbmc/downloads/list

that one is working fine on my end (requires xbmc r30369 or up).


- mindweaver - 2010-05-24

(special://addons/script.recentlyadded/default.py,limit=8&albums=True&unplayed=True&totals=True)
22:36:19 T:5216 M:269271040 DEBUG: CApplication::ExecuteXBMCAction : To RunScript(special://addons/script.recentlyadded/default.py,limit=8&albums=True&unplayed=True&totals=True)
22:36:19 T:5216 M:269271040 WARNING: ADDON: cpluff: 'Could not return information about unknown plug-in special://addons/script.recentlyadded/default.py.'
22:36:19 T:5216 M:269271040 ERROR: Python script "" does not exist


same error Sad how do you call it?

Code:
<onfocus>RunScript(special://addons/script.recentlyadded/default.py,limit=5&amp;albums=True&amp;unplayed=True&amp;totals=True)</onfocus>

is that incorrect?


EDIT: Weird thing is, the skin installes fine.


- Hitcher - 2010-05-24

Is it in the folder you've specified?

I put mine in the skin folder and point to it.


- mindweaver - 2010-05-24

Hitcher Wrote:Is it in the folder you've specified?

I put mine in the skin folder and point to it.

Yes sir!

Code:
C:\Users\XXXX\AppData\Roaming\XBMC\addons\script.recentlyadded\default.py



- mcborzu - 2010-05-24

mindweaver Wrote:Yes sir!

Code:
C:\Users\XXXX\AppData\Roaming\XBMC\addons\script.recentlyadded\default.py

In my Windows7 setup, XBMC stuff isnt stored in the appdata like before it's stored in:

Quote:C:\Program Files\XBMC\addons



- ronie - 2010-05-24

mindweaver Wrote:same error Sad how do you call it?

Code:
<onfocus>RunScript(special://addons/script.recentlyadded/default.py,limit=5&amp;albums=True&amp;unplayed=True&amp;totals=True)</onfocus>

is that incorrect?

nope, give this a shot:
Code:
<onfocus>RunScript(script.recentlyadded,limit=5&amp;albums=True&amp;unplayed=True&amp;totals=True)</onfocus>