• 1
  • 19
  • 20
  • 21(current)
  • 22
  • 23
[RELEASE] RandomItems (Random Items) Script
I keep getting script failed: RandomItem.py

I'm using Frodo Alpha 6 and Aeon Nox

Code:
root ~/.xbmc/addons/script.randomitems # python RandomItems.py
Traceback (most recent call last):
  File "RandomItems.py", line 7, in <module>
    import xbmc, xbmcgui, xbmcaddon
ImportError: No module named xbmcgui
"PPC is too slow, your CPU has no balls to handle HD content." ~ Davilla
"Maybe it's a toaster. Who knows, but it has nothing to do with us." ~ Ned Scott
Reply
(2012-10-03, 02:04)lrusak Wrote: I keep getting script failed: RandomItem.py

I'm using Frodo Alpha 6 and Aeon Nox

Code:
root ~/.xbmc/addons/script.randomitems # python RandomItems.py
Traceback (most recent call last):
  File "RandomItems.py", line 7, in <module>
    import xbmc, xbmcgui, xbmcaddon
ImportError: No module named xbmcgui

you're not supposed to run it from the command line.
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
(2012-10-03, 02:10)ronie Wrote: you're not supposed to run it from the command line.

I am aware. The error shows in the GUI and I can't figure out why. I believe the version of the script is 3.1.7 which is the latest.
"PPC is too slow, your CPU has no balls to handle HD content." ~ Davilla
"Maybe it's a toaster. Who knows, but it has nothing to do with us." ~ Ned Scott
Reply
(2012-10-03, 02:14)lrusak Wrote:
(2012-10-03, 02:10)ronie Wrote: you're not supposed to run it from the command line.

I am aware. The error shows in the GUI and I can't figure out why. I believe the version of the script is 3.1.7 which is the latest.

post your complete debug log then. that error should never occur when python scripts are called from inside xbmc.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
Hey there,

while using
Code:
<onclick>$INFO[Window.Property(RandomAlbum.1.Path)]</onclick>
inside a button or item (with id) in a wraplist i'm not able to play a album.

log: LogFile
Reply
(2012-10-06, 15:03)vanMiez Wrote: Hey there,

while using
Code:
<onclick>$INFO[Window.Property(RandomAlbum.1.Path)]</onclick>
inside a button or item (with id) in a wraplist i'm not able to play a album.

log: LogFile

already fixed just not released yet.
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
@vanMiez: script.randomitems-12.0.4.zip

note:
- will only work with a very recent nightly build (4 October or later)
- the RandomFoo.Count properties have been removed
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
works nice... thanks

is it somehow possible to make the script add an album to the playlist, if there is already music playing?
Reply
(2012-10-06, 22:08)vanMiez Wrote: works nice... thanks

is it somehow possible to make the script add an album to the playlist, if there is already music playing?
how is the script response time for you?
I could on test on a i7 machine so i'm curious how it is on lower powered

Yes that could be done however is that what we want as default behaviour?

@ronie
Thoughts?
Could be done using addon settings be not sure if we want to go that way.
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
if it would be the default behaviour of the script and it isn't wanted by the skinner there would be <onclick>Playlist.Clear</onclick> to empty the list before playing the album. by that it would also be possible to put a condition into this <onlick> tag and let decide the user...

response time of the script is in fact much better than before... takes a second to display 10 random albums and playing one is almost instant.
[running Win7 x86 on a core 2duo @2GHz and 2GB RAM]

nice job ;-)

don't know if it is the script or xbmc itself, but there is one annoying thing: from the second track on there is no album thumb displayed in musicoverlay.xml.
Reply
onclick should directly play the album, as this is the default behaviour everywhere in xbmc.

i don't mind have an addon setting to change to behaviour to queue instead.
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
Just a thought, maybe for the future, but adding Random TV Series could be handy, definitely more handy than Random Episodes.
Reply
seems like its the script... playing albums out of the library doesn't cause the thumbs in musicoverlay to disappear, but the script does.
Reply
(2012-10-07, 09:03)vanMiez Wrote: seems like its the script... playing albums out of the library doesn't cause the thumbs in musicoverlay to disappear, but the script does.

theres an issue with musicthumbs during playback in xbmc:
http://trac.xbmc.org/ticket/13167

though i'm not 100% sure it's related to your issue
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
(2012-10-07, 12:56)ronie Wrote:
(2012-10-07, 09:03)vanMiez Wrote: seems like its the script... playing albums out of the library doesn't cause the thumbs in musicoverlay to disappear, but the script does.

theres an issue with musicthumbs during playback in xbmc:
http://trac.xbmc.org/ticket/13167

though i'm not 100% sure it's related to your issue

looks like that's the problem. if only i could code c Confused so i'm waiting for a fix and you guys don't have to crawl your code. thanks
Reply
  • 1
  • 19
  • 20
  • 21(current)
  • 22
  • 23

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