<import addon="script.recentlyadded" version="1.0.4"/>

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
mcborzu Offline
Skilled Skinner
Posts: 3,381
Joined: Feb 2009
Reputation: 15
Location: dsf
Post: #1
How does <import addon="script.recentlyadded" version="1.0.4"/> work? I just noticed it in Confluences addon.xml. Does that mean the recentlyadded script automatically get downloaded?

Since every skin uses recentlyadded should pretty much all of us include it?

What happens if a user version="1.0.3" would that automatically trigger a download and stop all the "HELP Recently Added don't work" posts skins get every so often?

[Image: widget]

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
find quote
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,269
Joined: Jun 2006
Reputation: 55
Location: Earth
Post: #2
I honestly have no idea Spiff did all that I assume it doesn't auto download it but if its on the system it is runnable. but I'm the dark as much as you

Skins I have done....
[Image: skinsq.png]
And others in the past...

Want to know what I'm working on currently? Check me out on Google+
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,564
Joined: Oct 2003
Reputation: 138
Post: #3
script.recentlyadded is provided with SVN as well, so no download is necessary.

And yes, if your skin depends on the recently added script being there, then you should include it in the <requires> tag.

Cheers,
Jonathan

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
mcborzu Offline
Skilled Skinner
Posts: 3,381
Joined: Feb 2009
Reputation: 15
Location: dsf
Post: #4
What about "script.favourites"? I cant get it to work automatically like "recently added" unless I physical download it and put it into the /addons folder. Which I thought the <requires> tag does so then the end user doesnt have to hunt it down and install it...

Unless I have an error this is script.favourites addon.xml:
PHP Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.favourites"
       name="Favourites script"
       version="1.0.1"
       provider-name="CF2009">
  <requires>
    <import addon="xbmc.python" version="1.0"/>
  </requires>
  <extension point="xbmc.python.library"
             library="default.py" />
  <extension point="xbmc.addon.metadata">
    <summary>Favourites script</summary>
    <description>Fetches item from your xbmc favourites to populate Home menu/submenu with custom buttons.</description>
    <disclaimer>Needs skin support for it to be used properly</disclaimer>
    <platform>all</platform>
  </extension>
</addon> 

And my <requires> section:
PHP Code:
<requires>
    <
import addon="xbmc.gui" version="2.11"/>
    <
import addon="script.recentlyadded" version="1.0.4"/>
    <
import addon="script.favourites" version="1.0.1"/>
  </
requires

[Image: widget]

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,233
Joined: Nov 2003
Reputation: 82
Post: #5
looks fine. you do try to run the favscript using RunScript(script.favourites) right, not using the old path?

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
mcborzu Offline
Skilled Skinner
Posts: 3,381
Joined: Feb 2009
Reputation: 15
Location: dsf
Post: #6
Yea code works fine - <onfocus>RunScript(script.favourites,playlists=play)</onfocus> - but what seems not to work is the <requires> tag. Atleast my thought is the <import addon> tag would mean if a user doesnt have something that is <required> then it will import/download it so then the skin and end user will be able to use it without the enduser having to search and manually download it...

I see script.favorites is here along with all others approved addons. I dont see it using the addonbrowser though if that means anything...

[Image: widget]

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,233
Joined: Nov 2003
Reputation: 82
Post: #7
it only grabs the deps when an addon is installed through the browser. and it's not supposed to show in the browser, it can only be used by a skin, it has no value on its own.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
mcborzu Offline
Skilled Skinner
Posts: 3,381
Joined: Feb 2009
Reputation: 15
Location: dsf
Post: #8
That was my guess on why scripts with xbmc.python.library dont show.

Quote:it only grabs the deps when an addon is installed through the browser

So just to confirm it doesn't auto-download if a end user doesn't have it? Because with the "skins shouldn't have script(s) included with a skin" rule, many people will think that custom home items and the logo script don't work and the skin is broken not knowing they have to download them. Unless we are allowed to keep scripts in the skins then things will work automatically for end users...

[Image: widget]

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,233
Joined: Nov 2003
Reputation: 82
Post: #9
what made you draw that conclusion?

YES, it WILL download dependencies. on install time. that is, you have to either install from a repository or using the install from zip button. however, if you just manually copy it to the addons folder it will NOT download the dependencies.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,976
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #10
mcborzu Wrote:"skins shouldn't have script(s) included with a skin"

When did this happen?

I'm using a modified RecentlyAdded script so the user can either have the latest videos on the Home screen or random, unwatched ones.

[Image: sig_zps3af3b48e.jpg]
find quote
Post Reply