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

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Skin Development (/forumdisplay.php?fid=12)
+--- 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 15 16 17 18 19 20


- mindweaver - 2010-05-24 15:31

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 17:40

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 17:50

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 22:12

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 22:28

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 22:38

(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 23:03

Is it in the folder you've specified?

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


- mindweaver - 2010-05-24 23:05

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 23:12

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 23:35

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>