[RELEASE] RandomItems (Random Items) Script

  Thread Rating:
  • 2 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Hitcher Offline
Skilled Skinner
Posts: 10,857
Joined: Aug 2007
Reputation: 101
Location: Eastleigh, UK
Post: #46
ppic Wrote:i don't understand what's the problem ?

how do you display the fanart in skin?

Listitem.Property(Fanart_Image) but for episodes we need to use Fanart.Image to use the TV Show fanart which where I think this problem is coming.
find quote
steppedup Offline
Senior Member
Posts: 255
Joined: Dec 2009
Reputation: 2
Post: #47
I've installed this into my \AppData\Roaming\XBMC\addons folder after unzipping it.

But not sure where I go to start this script?
find quote
ppic Offline
Skilled Python Coder
Posts: 2,711
Joined: Feb 2009
Reputation: 11
Location: France idf
Post: #48
this script is used and automatically downloaded with skin using it, if your skin is compatible, you'll find an option to use random items.

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find quote
blacklist Offline
Posting Freak
Posts: 814
Joined: Jul 2009
Reputation: 1
Location: Atlanta, Ga, USA
Post: #49
ppic Wrote:this script is used and automatically downloaded with skin using it, if your skin is compatible, you'll find an option to use random items.

Ppic - if you look at the tv shows in the alpha of paper street you will see the problem. The random show should show the show fan art and show poster. Instead it only shows the episode thumb.

Hope this makes some sense.
find quote
Hitcher Offline
Skilled Skinner
Posts: 10,857
Joined: Aug 2007
Reputation: 101
Location: Eastleigh, UK
Post: #50
Update now plays albums thanks to ppic.
find quote
ppic Offline
Skilled Python Coder
Posts: 2,711
Joined: Feb 2009
Reputation: 11
Location: France idf
Post: #51
still problem with fanart ?
i should be able to look at it soon.

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find quote
Hitcher Offline
Skilled Skinner
Posts: 10,857
Joined: Aug 2007
Reputation: 101
Location: Eastleigh, UK
Post: #52
blacklist Wrote:Ppic - if you look at the tv shows in the alpha of paper street you will see the problem. The random show should show the show fan art and show poster. Instead it only shows the episode thumb.

Hope this makes some sense.

ppic Wrote:still problem with fanart ?
i should be able to look at it soon.

I found the problem with episode fanart but it doesn't look easy to fix.

There is no 'fanart' field in the database's 'episodeview' it can only be found in the 'tvshow' table.

How you manage to extract that info I've no idea, ppic?
find quote
ppic Offline
Skilled Python Coder
Posts: 2,711
Joined: Feb 2009
Reputation: 11
Location: France idf
Post: #53
well, difficult there because the same function is used to get media for tvshows and movies...

need a big re-work on this, doable yes, got to find a way.

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find quote
blacklist Offline
Posting Freak
Posts: 814
Joined: Jul 2009
Reputation: 1
Location: Atlanta, Ga, USA
Post: #54
Just an idea, but how about instead of messing with the episode stuff... we just implement a "Random Show" class instead? That way you are just pulling from the tvshow table and it would fit in just fine with at least what I have working at the moment. The only question I would have is that clicking on the Randow Tv Show should take you to that show's season page? Not sure what the correct functionality would be. Really pull up the show info page seems the most correct.

Otherwise, I would think you need to change the SQL call to merge the correct tv eipsode date with the correct show data and return both from the call. A simple JOIN should accomplish this, I can mess with the database later this evening if I don't get snowed in at work.
find quote
ronie Offline
Team-Kodi Member
Posts: 9,292
Joined: Jan 2009
Reputation: 161
Post: #55
Hitcher Wrote:Update now plays albums thanks to ppic.

must be a c&p error on line 201:
Code:
path = 'XBMC.RunScript(script.[b]recentlyadded[/b],albumid=' + fields[ 0 ] + ')'

also, the script shouldn't clear the window properties when you play an album.
see: http://forum.xbmc.org/showthread.php?p=7...post713859

both issues fixed in this version:
http://transparency-xbmc.googlecode.com/...omItems.py

anyone....please test :-)

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
nuane Offline
Junior Member
Posts: 17
Joined: Jan 2011
Reputation: 0
Location: Belgium, Bruges
Post: #56
Can someone help me making this work in aeon mq ot at least point me in the right direction. It just want to be able to play a random unwatched moveie but I have no idea where to begin.
Thanks
find quote
BigNoid Offline
Team-Kodi Member
Posts: 3,151
Joined: Jul 2010
Reputation: 102
Location: Below sea level
Post: #57
Don't know if this may have been posted elsewhere (couldn't find anything with search) but the latest script I could find didn't show movies and episodes thumbs in the nigthly builds. Here is an edited script that fixes that:

http://aeon--nox.googlecode.com/files/RandomItems.py

EDIT: altered link, tvshow title also fixed.
(This post was last modified: 2011-04-18 22:41 by BigNoid.)
find quote
ronie Offline
Team-Kodi Member
Posts: 9,292
Joined: Jan 2009
Reputation: 161
Post: #58
i have added Random Addons to the script

the script will now also scan your addons folder for installed plugins and scripts
and make these info labels available to the skin:

Code:
RandomAddon.%d.Name
RandomAddon.%d.Author
RandomAddon.%d.Summary
RandomAddon.%d.Version
RandomAddon.%d.Path
RandomAddon.%d.Fanart
RandomAddon.%d.Thumb
Addons.Count

the Path can be used to run the addon:
Code:
<onclick>RunAddon($INFO[Window.Property(RandomAddon.%d.Path)])</onclick>


as mentioned, it's currently plugins and scripts only.
i'm not sure if it would make sense to include other addons as well,
like skins, visualizations, scrapers, etc..
since we can't run them from our home screen anyway.

let me now what you think and if there's any issues.


download: script.randomitems.zip


note: this is for nightly builds only. it is not Dharma compatible!

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2011-05-11 17:20 by ronie.)
find quote
igotdvds Offline
Skilled Skinner
Posts: 1,616
Joined: Jul 2009
Reputation: 11
Post: #59
ronie Wrote:i have added Random Addons to the script

the script will now also scan your addons folder for installed plugins and scripts
and make these info labels available to the skin:

Code:
RandomAddon.%d.Name
RandomAddon.%d.Author
RandomAddon.%d.Summary
RandomAddon.%d.Version
RandomAddon.%d.Path
RandomAddon.%d.Fanart
RandomAddon.%d.Thumb
Addons.Count

the Path can be used to run the addon:
Code:
<onclick>RunAddon(RandomAddon.%d.Path)</onclick>

as mentioned, it's currently plugins and scripts only.
i'm not sure if it would make sense to include other addons as well,
like skins, visualizations, scrapers, etc..
since we can't run them from our home screen anyway.

let me now what you think and if there's any issues.


download: script.randomitems.zip


note: this is for nightly builds only. it is not Dharma compatible!

Anyway to get recent addons in the recently added script?
find quote
BigNoid Offline
Team-Kodi Member
Posts: 3,151
Joined: Jul 2010
Reputation: 102
Location: Below sea level
Post: #60
Just tested this and it works as expected, great work and a nice addition to the home menu!
Here's a video of the script in action:
http://www.youtube.com/watch?v=JjC1jQbq8Z8

Do you think it's possible to have the XBMC.org repo as a source and an onclick action to the respective addon installer?
find quote
Post Reply