• 1
  • 12
  • 13
  • 14(current)
  • 15
  • 16
  • 23
[RELEASE] RandomItems (Random Items) Script
LoL Wrote:I found a bug when playing a multi cd movie from this script: it only shows the first cd. Playing it from library goes without problems.

I've attached a debug log to pastebin: here

what i did was:
- startup
- start al multi cd movie from Spotlight (randomitems script in Xperience1080)
- forward to the end (which is just the end of cd one)
- look up the movie in Movies and start it from there (then it plays normal, the complete 2cds)

Hope this helps!


Thx, LoL

please post about the issue in the Xperience1080p support thread.
it's something that needs to be fixed in the skn, see:
http://trac.xbmc.org/ticket/12708
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:please post about the issue in the Xperience1080p support thread.
it's something that needs to be fixed in the skn, see:
http://trac.xbmc.org/ticket/12708

Been there Big Grin

`Black Wrote:Ok then post it in the randomitems script thread, shouldn't be a skin related problem.
Reply
ronie Wrote:please post about the issue in the Xperience1080p support thread.
it's something that needs to be fixed in the skn, see:
http://trac.xbmc.org/ticket/12708

I thought about this the other when the $INFO/$ESCINFO discussion started.

We don't don't use <onclick>PlayMedia($INFO[...])</onclick> for music items as it's all handled by the script and we simply use <onclick>$INFO[...]</onclick>. So where is the $ESCINFO used?

Thanks.
Reply
Hitcher Wrote:I thought about this the other when the $INFO/$ESCINFO discussion started.

We don't don't use <onclick>PlayMedia($INFO[...])</onclick> for music items as it's all handled by the script and we simply use <onclick>$INFO[...]</onclick>. So where is the $ESCINFO used?

Thanks.

you should use $ESCINFO[] when passing an infolabel to a built-in function.

so in your example, for playing albums, it's not needed.
but for movies, one should use PlayMedia($ESCINFO[ListItem.Path])
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
Was wondering if someone can help me.

Would it be possible to have the script return random movies from genres (action,drama,comedy,etc.) and random movies from top250?

Image

Making a new skin and would like the two "featured" panels to be random "Comedy" and a random "IMDB Top250" movie.

If not then would it be possible to implement it in the next release? and is there a short term solution?

cheers!
Reply
That's possible with playlist and
RandomAndLastItem script
Reply
yea but I already have Watchlist and this script running, Would rather limit my skin to as few (2) possible scripts on startup.

In short term i can use the RandomAndLastItem script.
Reply
krish_2k4 Wrote:Would it be possible to have the script return random movies from genres (action,drama,comedy,etc.)

if i'm not mistaken, genres are localized (depending on which scraper you use),
so i don't see a way to reliably do this.
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:if i'm not mistaken, genres are localized (depending on which scraper you use),
so i don't see a way to reliably do this.

no probs Sad, will use the RandomAndLastItem script for now,

thanks.
Reply
Hello Hitcher, Ronie. I have errors in script random item, when use randomize item, using latest xbmc frodo nightlies..please look my log, and try fix, I know script work fine in eden.

link for log download:
http://dl.dropbox.com/u/25170804/Randoni...t/xbmc.log

error in log

ERROR: Traceback (most recent call last):

File "C:\Users\Wanilton\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py", line 389, in <module>
Main()
File "C:\Users\Wanilton\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py", line 79, in __init__
self._fetch_musicvideo_info()
File "C:\Users\Wanilton\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py", line 217, in _fetch_musicvideo_info
fanart = item['fanart']
KeyError: ('fanart',)

07:15:34 T:12244 INFO: -->End of Python script error report<--


I don´t have fanart for smartplaylist videos in frodo, in eden it´s fine, fanart ok. .

Thanks for good job.

Wanilton
MediaBrazil forum Website - Youtube Channel
MQ9-1.6.0.29 - 09.15.2023 - Aeon MQ Skin Team
MarcosQui Website Donate and support us.
Reply
(2012-05-23, 14:01)Wanilton Wrote: Hello Hitcher, Ronie. I have errors in script random item, when use randomize item, using latest xbmc frodo nightlies..please look my log, and try fix, I know script work fine in eden.

link for log download:
http://dl.dropbox.com/u/25170804/Randoni...t/xbmc.log

error in log

ERROR: Traceback (most recent call last):

File "C:\Users\Wanilton\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py", line 389, in <module>
Main()
File "C:\Users\Wanilton\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py", line 79, in __init__
self._fetch_musicvideo_info()
File "C:\Users\Wanilton\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py", line 217, in _fetch_musicvideo_info
fanart = item['fanart']
KeyError: ('fanart',)

07:15:34 T:12244 INFO: -->End of Python script error report<--


I don´t have fanart for smartplaylist videos in frodo, in eden it´s fine, fanart ok. .

Thanks for good job.

Wanilton

i know it's broken, won't be the last time you're gonna have issues when using nightlies ;-)

http://trac.xbmc.org/ticket/13034
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, thanks for your info.

Wanilton
MediaBrazil forum Website - Youtube Channel
MQ9-1.6.0.29 - 09.15.2023 - Aeon MQ Skin Team
MarcosQui Website Donate and support us.
Reply
small update:

v3.0.10
- added album description property (RandomAlbum.x.Album_Description)

cheers
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
slightly bigger update Wink

v3.1.0
- added "Random Artists" properties:

"RandomArtist.%d.Title"
"RandomArtist.%d.Path"
"RandomArtist.%d.Fanart"
"RandomArtist.%d.Thumb"
"RandomArtist.%d.Artist_Description"
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
and here is the download link:
script.randomitems-3.1.1.zip

please test and report back if you find any issues.
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
  • 1
  • 12
  • 13
  • 14(current)
  • 15
  • 16
  • 23

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