Posts: 828
Joined: Jan 2013
Reputation:
19
2016-01-16, 14:07
(This post was last modified: 2016-01-16, 14:07 by Rantanplan-1.)
Not shure where else to post this. So i give it a try here.
"Single" Weatherfanart Imagepacks ("single" and "faded") have the wrong struckture. (Missing Folders)
Instead of having Folders as suggestet they name the Images according to the Condition Numbers, which is imo. wrong. (This way it isnt possible to use them if choosen with the selector.)
Regards
Posts: 15,282
Joined: Jan 2009
Reputation:
738
ronie
Team-Kodi Member
Posts: 15,282
you should be able to use the 'xxx.multi' skin setting to find out if the resource addon has folders or not.
Posts: 828
Joined: Jan 2013
Reputation:
19
2016-01-17, 00:49
(This post was last modified: 2016-01-17, 01:19 by Rantanplan-1.)
Thanks, seems i miss that.
However, would prefere if all Weather Fanart packs would follow the same rules.
I think / from my point of view, the Folder Restriction was usefull. (And shuld be kept, as long as i dont miss any benefit by dropping this restriction.)
the way it is now, it feels just kinde of "Hacky" to have to use 2 controls or a Variable, to display Weather Fanart. However, happy there is a Workaround, just wondering if this is realy needed.?.-.)
The Weatherfanart-pack "Prairie" shows that it also work if there is just a single Image in each Folder.
So i would suggest to keep the "Folder" restriction, no mather if for a single Image according to the prediction or a Imgae set.
pls. Dont get me wrong, im glad there is a workaround, all i ask myself is, is this realy needed, and shuldn't weather fanart packs follow the same rules / restriction as in the past to allow ease of use.-.
Regards.
Posts: 365
Joined: Sep 2011
Reputation:
14
there is one more thing I would like to address that concerns the new resource addon type. The textures/images included in the different addons are often in different formats.
Same type of resource (i.e. movie genre) can be stored as jpg or as png. For the skinner there is no chance to offer the end user a way to use all the goodies the new addon type offers.
Maybe there should be a strict rule for the format each type of resource can have or maybe the addon by itself could offer a property that can be used by skinners to determine what format is included?
Posts: 15,282
Joined: Jan 2009
Reputation:
738
ronie
Team-Kodi Member
Posts: 15,282
currently there isn't a way for the selection script to know which image format (png/jpg/gif) is provided by the resource addon.
it would require a change in the addon.xml of each resource addon to include this info.
Posts: 15,282
Joined: Jan 2009
Reputation:
738
ronie
Team-Kodi Member
Posts: 15,282
i've updated all image resource addons and the image resource selection script.
the script (v0.0.9) will now also set the the 'xxx.ext' skin setting.
this setting will return the extension ('.png' or '.jpg') of the images inside the resource addon.
Posts: 365
Joined: Sep 2011
Reputation:
14
great work ronie. Thnx for the quick fix.
Posts: 365
Joined: Sep 2011
Reputation:
14
2016-01-28, 10:12
(This post was last modified: 2016-01-28, 10:14 by paradix.)
two more things I noticed:
- resource.images.weathericons.default lack the info.xml file
- maybe the OutlookIcon property should return a value without the extension?
Posts: 5,446
Joined: Jul 2012
Reputation:
381
Is there some sort of list of resource image types, or is every skin (and image pack dev) on its own in defining these?
So far I am looking at
moviegenreicons
musicgenreicons
studios (I guess not studioicons?)
just by installing the addons and inspecting.
scott s.
.
Posts: 15,282
Joined: Jan 2009
Reputation:
738
ronie
Team-Kodi Member
Posts: 15,282
2016-02-03, 11:25
(This post was last modified: 2016-02-23, 11:34 by ronie.)
nope, there's no such list.
though all image packs of the same type are expected to use the same type name ofc.
if you submit a new resource addon to the repo that doesn't fit in any of the existing types,
you can pick a new type name. just use something that's descriptive of the contents.
Posts: 5,446
Joined: Jul 2012
Reputation:
381
Thanks. New Q:
I am working on DialogSelect. I need to know that Image Resource Selection loaded it so I can set visibility on the listitems. I saw that ListItem.Property(extension) was being set, and that worked except for the "null" first listitem. could you set the extension property on that one too (I hacked using 'null' literal in case there was a reason to check the actual extension in the property). Also, could you consider creating/passing ListItem.Property(author) as well?
scott s.
.