Any way to give better access to themes for repo skins?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Martijn Online
Team-XBMC
Posts: 7,683
Joined: Jul 2011
Reputation: 114
Location: Dawn of time
Post: #11
(2012-08-04 10:54)Big_Noid Wrote:  To save space in skins there was mentioning some time ago about making a separate add-on for the mediaflags used in skins. That would save 20 MB alone in our case. Only disadvantage is that they arent in xbt anymore then. Backgrounds account for another 20 MB in Nox and are outside the xbt anyway. Maybe we can make a sort of background pack as add-on.

flag packs could still be possible within current Eden code. By creating a script that downloads them on first start and it save them within a fixed location in the addons folder. Or directly in the skin folder.
Problem is that on update all off the content is removed and you would have to download again. So it should be a folder in where the addon settings are stored.
With some work this could be simply achieved and save all skins that use those flags about 20megs.
Once the API from fanart.tv is up i can directly download the images that match the naming convention of MusicBrainz and push that into a .xbt which could then be downloaded by the script (or as loose images). Same will be in couple of weeks for movie studio flags that will match the namings on themoviedb.org.
So there will be a central location where you can get your flags from.

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


For your mediacenter artwork go to
[Image: fanarttv.png]
(This post was last modified: 2012-08-04 12:16 by Martijn.)
find quote
wyrm Offline
Skilled Skinner
Posts: 766
Joined: Nov 2007
Reputation: 5
Location: Perth, Australia (GMT +8)
Post: #12
(2012-08-04 11:46)phil65 Wrote:  
(2012-08-04 11:03)Jezz_X Wrote:  As long as the script is general and works for every skin out there "probably" yes (not my call in the end)

Basic Idea would be a service type script that took a URL as a command line option that pointed to your skins list of online themes the real hard part is getting it to extract to the right place. Sadly Confluence misses out again since its usually installed in write protected sections of file systems Sad

ok, then plan b would be a something like script.themedownloader(URL,DESTINATION).
thx for explanations.
phil65,

Go look at this script in my googlecode page. It is basically doing EXACTLY what you are after now. Really the only work required is to make it XBMC repo friendly (and possibly make it more general to handle other artwork). Called in my skin with RunScript(ThemeInstaller.py , URL). The main reason I have not done it myself is my python is not that great and I'm not prepared to provide support for this. Find a real python coder and your good to go.

Wyrm (xTV-SAF)

When postings problems, please provide build details. If required a FULL debug log can now be submitted from the skin in settings->appearance->skin->settings>support. Ensure debug logging has been set in settings->system->debugging (or from the support menu). FAQ's located at :- http://wiki.xbmc.org/index.php?title=Add-on:XTV-SAF
find quote
phil65 Offline
Skilled Skinner
Posts: 4,456
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #13
(2012-08-04 15:47)wyrm Wrote:  
(2012-08-04 11:46)phil65 Wrote:  
(2012-08-04 11:03)Jezz_X Wrote:  As long as the script is general and works for every skin out there "probably" yes (not my call in the end)

Basic Idea would be a service type script that took a URL as a command line option that pointed to your skins list of online themes the real hard part is getting it to extract to the right place. Sadly Confluence misses out again since its usually installed in write protected sections of file systems Sad

ok, then plan b would be a something like script.themedownloader(URL,DESTINATION).
thx for explanations.
phil65,

Go look at this script in my googlecode page. It is basically doing EXACTLY what you are after now. Really the only work required is to make it XBMC repo friendly (and possibly make it more general to handle other artwork). Called in my skin with RunScript(ThemeInstaller.py , URL). The main reason I have not done it myself is my python is not that great and I'm not prepared to provide support for this. Find a real python coder and your good to go.

Wyrm (xTV-SAF)

nice, thx. will look at it. is the skin hardcoded or does it just use the skin it is called from?
find quote
wyrm Offline
Skilled Skinner
Posts: 766
Joined: Nov 2007
Reputation: 5
Location: Perth, Australia (GMT +8)
Post: #14
(2012-08-04 17:07)phil65 Wrote:  
(2012-08-04 15:47)wyrm Wrote:  
(2012-08-04 11:46)phil65 Wrote:  ok, then plan b would be a something like script.themedownloader(URL,DESTINATION).
thx for explanations.
phil65,

Go look at this script in my googlecode page. It is basically doing EXACTLY what you are after now. Really the only work required is to make it XBMC repo friendly (and possibly make it more general to handle other artwork). Called in my skin with RunScript(ThemeInstaller.py , URL). The main reason I have not done it myself is my python is not that great and I'm not prepared to provide support for this. Find a real python coder and your good to go.

Wyrm (xTV-SAF)

nice, thx. will look at it. is the skin hardcoded or does it just use the skin it is called from?
phil65,

Completely skin independent (just checked, not entirely true. Uses strings from my skin instead of providing it's own localised strings). What the script does is to present a list of zip files stored at the URL location. User selects required zip file and script unpacks zip and places the .xml file in the color subdirectory of the skin and the .xbt file in the skins media sub directory. As I said there is no reason why it could not be made more general and just unpack the directory structure of the zip into the skins directory structure. The script currently does NOT conform to XBMC repo requirements (no addon.xml, no icon.png and I'm sure there are a number of python path issues that Spiff would have a cow over). As I said, python is not really my thing, so it was just easier to drop official support for the script in my skin. If someone else wants to run with this, be my guest.

Wyrm (xTV-SAF)
find quote
Post Reply