• 1
  • 9
  • 10
  • 11(current)
  • 12
  • 13
  • 23
[RELEASE] RandomItems (Random Items) Script
just pushed v3.0.4 to the repo

changlelog:
- add support for music videos
- added addon type property
- return two digit values for episode and season numbers
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
Ronie for president!
My skins:

Amber
Quartz

Reply
hello Ronie

Iseem to be having an issue with the script. Both on Startup & manual activation, i get the error code:
File "/.xbmc/addons/script.randomitems/RandomItems.py", line 11, in <module>
__addon__ = xbmcaddon.Addon()
Exception: No valid addon id could be obtained. None was passed and the script wasn't executed in a normal xbmc manner.

i'd really appreciate any help you could offer, since this is my most used script as it takes the pressure of having to make decisions off of me after waking up. Laugh
Reply
thatguy7669 Wrote:Iseem to be having an issue with the script. Both on Startup & manual activation, i get the error code:
File "/.xbmc/addons/script.randomitems/RandomItems.py", line 11, in <module>
__addon__ = xbmcaddon.Addon()
Exception: No valid addon id could be obtained. None was passed and the script wasn't executed in a normal xbmc manner.

full Debug Log on pastebin pleaseSmile
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
sorry about that.

here you are. let me know if you need more info. pastebin

thanks in advance.
Reply
thatguy7669 Wrote:sorry about that.

here you are. let me know if you need more info. pastebin

thanks in advance.

your xbmc build is too old. :-)
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
well who'd of thunk it!! Laugh

zhought i was all up to date. which pvr-nightly version would you recommend?
Reply
thatguy7669 Wrote:well who'd of thunk it!! Laugh

zhought i was all up to date. which pvr-nightly version would you recommend?

i rarely use them, so wouldn't be able to tell.
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
Hi Guys,

I've setup Recent/Random Albums however when trying to play a 'Random' album i get this error in the debug log...

http://pastebin.com/MEqLFA7p

As you can see, it's trying to select '6.11:00:16 T:1536 DEBUG: Connecting to sqlite:C:\Program Files (x86)\XBMC (Welo)\portable_data\userdata\Database\:MyVideos57.db' instead of MyMusic*blah*.db.

It's then trying to connect using DVDPlayer!

Here's a working log from a 'Recent' album...

http://pastebin.com/ytPCpxYj

Any ideas? XBMC bug or RandomItems script bug? Me being stupid?!

Here's a sample of my recent and random code...

PHP Code:
                        <item id="1">
                            <
icon>$INFO[Window.Property(LatestAlbum.1.Thumb)]</icon>
                            <
label>$INFO[Window.Property(LatestAlbum.1.Title)]</label>
                            <
label2>$INFO[Window.Property(LatestAlbum.1.Artist)]</label2>
                            <
property name="ItemRating">$INFO[Window.Property(LatestAlbum.1.Rating)]</property>
                            <
onclick>Playlist.Clear</onclick>                            
                            <
onclick>$INFO[Window.Property(LatestAlbum.1.Path),PlayMedia(,)]</onclick>
                            <
visible>!Skin.HasSetting(RecentRandomSongs) + !Skin.HasSetting(HomeRandom) + !IsEmpty(Window.Property(LatestAlbum.1.Title))</visible>
                        </
item

PHP Code:
                        <item id="1">
                            <
icon>$INFO[Window.Property(RandomAlbum.1.Thumb)]</icon>
                            <
label>$INFO[Window.Property(RandomAlbum.1.Title)]</label>
                            <
label2>$INFO[Window.Property(RandomAlbum.1.Artist)]</label2>
                            <
property name="ItemRating">$INFO[Window.Property(RandomAlbum.1.Rating)]</property>
                            <
onclick>Playlist.Clear</onclick>                                
                            <
onclick>$INFO[Window.Property(RandomAlbum.1.Path),PlayMedia(,)]</onclick>
                            <
visible>!Skin.HasSetting(RecentRandomSongs) + Skin.HasSetting(HomeRandom) + !IsEmpty(Window.Property(RandomAlbum.1.Title))</visible>
                        </
item

Cheers
Reply
remove the PlayMedia bit, it's not needed for randomitems.
Code:
<onclick>$INFO[Window.Property(RandomAlbum.1.Path)]</onclick>
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
ronie Wrote:remove the PlayMedia bit, it's not needed for randomitems.
Code:
<onclick>$INFO[Window.Property(RandomAlbum.1.Path)]</onclick>

Cheers ronie. Just tested and it works. Wink
Reply
Getting an error with this addon, this seems like relevant part:

Quote:18:39:56 T:5684 DEBUG: XBPyThread:Tonguerocess - The source file to load is C:\Users\mcborzu\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py
18:39:56 T:5684 DEBUG: XBPyThread:Tonguerocess - Setting the Python path to C:\Users\mcborzu\AppData\Roaming\XBMC\addons\script.randomitems;C:\Users\mcborzu\AppData\Roaming\XBMC\addons\script.module.simplejson\lib;C:\Program Files\XBMC\addons\script.module.pil\lib;C:\Users\mcborzu\AppData\Roaming\XBMC\addons\script.common.plugin.cache\lib;C:\Users\mcborzu\AppData\Roaming\XBMC\addons\script.module.parsedom\lib;C:\Program Files\XBMC\addons\script.module.pysqlite\lib;C:\Program Files\XBMC\system\python\DLLs;C:\Program Files\XBMC\system\python\Lib;C:\Program Files\XBMC\python26.zip;C:\Program Files\XBMC\system\python\lib\plat-win;C:\Program Files\XBMC\system\python\lib\lib-tk;C:\Program Files\XBMC;C:\Program Files\XBMC\system\python;C:\Program Files\XBMC\system\python\lib\site-packages;
18:39:56 T:5684 DEBUG: XBPyThread:Tonguerocess - Entering source directory C:\Users\mcborzu\AppData\Roaming\XBMC\addons\script.randomitems
18:39:56 T:5684 DEBUG: Instantiating addon using automatically obtained id of "script.randomitems" dependent on version 2.0 of the xbmc.python api
18:39:56 T:5684 INFO: -->Python script returned the following error<--
18:39:56 T:5684 ERROR: Error Type: <type 'exceptions.ImportError'>
18:39:56 T:5684 ERROR: Error Contents: No module named elementtree
18:39:56 T:5684 ERROR: Traceback (most recent call last):
File "C:\Users\mcborzu\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py", line 9, in <module>
from elementtree import ElementTree as xmltree
ImportError: No module named elementtree
18:39:56 T:5684 INFO: -->End of Python script error report<--

Windows 7, 32-bit build 7600. Built on Nov 29 2011 (Git:20111128-51c5336, compiler 1600)
"Random Items script" version="3.0.6"


Heres a link to full debug log
Image

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
Reply
mcborzu Wrote:Getting an error with this addon, this seems like relevant part:

the script needs the elementtree module:
script.module.elementtree

it should've been installed automatically though...
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
ronie Wrote:the script needs the elementtree module:
script.module.elementtree

it should've been installed automatically though...

I manually unzipped it, installed via .zip and everything fine, thx...
Image

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
Reply
since two days i get a lot of script errors from RandomItems.py
I installed the latest Version for preEden and i reinstalled script.module.elementtree but the error ist still existing.

please have a lock: http://pastebin.com/0g8UzXE3
i never had trouble with this script before. i have the preEden nightbuild from today installed
ASUS F2A85-M LE | A6-5400K | 4 GB DDR3-1866 | 128GB SSD | Windows 8 64 bit | XBMC 12 | Cirrus EV3
Onkyo TX-NR509 5.1 + Teufel Consono 35
Samsung UE55ES6300 55"
Harmony 785

www.MyXBMC.de
Reply
  • 1
  • 9
  • 10
  • 11(current)
  • 12
  • 13
  • 23

Logout Mark Read Team Forum Stats Members Help
[RELEASE] RandomItems (Random Items) Script2