• 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 23
[RELEASE] RandomItems (Random Items) Script
#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.
Reply
#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?
Reply
#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.
Reply
#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.
Reply
#50
Update now plays albums thanks to ppic.
Reply
#51
still problem with fanart ?
i should be able to look at it soon.
Reply
#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?
Reply
#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.
Reply
#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.
Reply
#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 :-)
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
#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
Reply
#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.
Reply
#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!
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
#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?
Image
To learn more, click here.
Reply
#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?
Reply
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 23

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