Solved Loading skin from repository crashes Kodi Nexus after following tutorial
#1
Question 
There is really no log to post as it is a single line:

Code:
2024-02-22 16:53:30.382 T:11252   error <general>: XFILE::CDirectory::GetDirectory - Error getting zip://https%3a%2f%2fkittmaster.github.io%2fMadnox_Nexus_Build%2fskin.madnox-21.00.00.zip/

The repository is here here:


You can see the linked zip here:


When I add:


as a source in file manager and then go to the add-on and say install from zip and select the v21.00.00 that is there, there is a short pause, and then Kodi literally just shuts down and closes and leaves the single line error show above.

I followed the readme tutorial multiple times to be sure I didn't miss anything and I can't figure out what I am doing wrong.

The tutorial seems straight forward. Any tips or insight on what I need to fix to make this right?

Thanks.
Kodi: Nexus v20.5 | Skin: Madnox.redux : Current Version: 20.00.11 | Forum | Madnox.redux v3 Repo
Mr. V's Original Source
Reply
#2
I get a 404 when I try to open the file in a web browser
https://kittmaster.github.io/Madnox_Nexu....00.00.zip

That's because the file does not exist in the base dir of the repo with the index.html file
https://github.com/kittmaster/Madnox_Nexus_Build/

Also the file should not be to your skin. The file should be to your repository addon. Your repository addon then contains details of links to your skin.
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
#3
No log, no issue.

Besides that, the way of installing add-ons you've described is not supported.
Reply
#4
(2024-02-23, 12:30)sarbes Wrote: No log, no issue.

Besides that, the way of installing add-ons you've described is not supported.

See for yourself then:

https://paste.kodi.tv/iliteqafef.kodi
Kodi: Nexus v20.5 | Skin: Madnox.redux : Current Version: 20.00.11 | Forum | Madnox.redux v3 Repo
Mr. V's Original Source
Reply
#5
(2024-02-23, 11:29)jurialmunkey Wrote: I get a 404 when I try to open the file in a web browser
https://kittmaster.github.io/Madnox_Nexu....00.00.zip

That's because the file does not exist in the base dir of the repo with the index.html file
https://github.com/kittmaster/Madnox_Nexus_Build/

Also the file should not be to your skin. The file should be to your repository addon. Your repository addon then contains details of links to your skin.

I saw the same thing and scratched my head too when I clicked the link. The tutorial was followed to the letter so I'm confused as to the end result I'm seeing. I've looked at your repository also and yours is similar, if you navigate a zip, it shows up empty.... if you click the "raw" then it pops a zip and it downloads the zip itself with something like "addon.xml, and a few images". 

I used Github desktop to push the files up the repository from local following the tutorial, it shows no local changes when done, so that means all files should be in position after the python script puts them into the zip folder and creates the md5 check no?

Now it is being said above that isn't how a skin it installed, funny, seems I can install other skins from Kodi repositories... that is my intent here, so it seems I'm doing it wrong, what should I be doing to have the skin install to have users update to the latest and greatest from the Github repository as I develop it?
Kodi: Nexus v20.5 | Skin: Madnox.redux : Current Version: 20.00.11 | Forum | Madnox.redux v3 Repo
Mr. V's Original Source
Reply
#6
I don't know what "the tutorial" is, but it seems to be giving bad advice.

Our documentation (https://kodi.wiki/view/Add-on_repositories) seems to be up to date, and should work. It also describes how to install add-ons/repositories (https://kodi.wiki/view/Add-on_manager#Ho...a_ZIP_file).
Reply
#7
Thank you for the links, I've been looking for that type of information here:

https://kodi.wiki/view/Add-on_development

Even a search for "repositories" doesn't yield either one of those two links..... errrr.

How did you "get" there exactly (to those 2 links)? What icon(s)? The search seemed to keep reverting back to "users" installing stuff vs. devs trying to "build" stuff.

I'll have a look and give it go, thank you for the help. Hopefully this gets me where I need to be.

Greetz,
Chris
Kodi: Nexus v20.5 | Skin: Madnox.redux : Current Version: 20.00.11 | Forum | Madnox.redux v3 Repo
Mr. V's Original Source
Reply
#8
(2024-02-23, 14:32)kittmaster Wrote: I saw the same thing and scratched my head too when I clicked the link. The tutorial was followed to the letter so I'm confused as to the end result I'm seeing. I've looked at your repository also and yours is similar, if you navigate a zip, it shows up empty.... if you click the "raw" then it pops a zip and it downloads the zip itself with something like "addon.xml, and a few images". 

Your repo and mine are not similar in this regard. If they were, yours would work. You are confused about the difference in how github and github pages work.

On github if you click a file, github will show a preview of the file. The lack of a preview does not mean the file does not exist. It simply means it is a binary file (like a zip) with no preview to show, so instead you get a link to the raw file. On github pages, however, (i.e. the index.html via the .io site) github will redirect links to files directly to the raw version so that it can be used in the webpage.

In your repo, the zips simply do not exist at all at the specified location so you get a 404 error.

But the bigger issue here is that you are conflating two separate concepts of filemanager sources and repository addons. I recommend that you forget about the whole index.html / github pages / filemanager sources for now and instead just focus on getting your actual repo addon up and running first.

(2024-02-23, 14:32)kittmaster Wrote: I used Github desktop to push the files up the repository from local following the tutorial, it shows no local changes when done, so that means all files should be in position after the python script puts them into the zip folder and creates the md5 check no?

I don't know as I don't use that script but I suspect it doesn't do what the tutorial says it does.

I use my own custom script for automating my repo generation. I imagine it is likely derived from the same common ancestor, but it has had significant modification to get it working.

(2024-02-23, 14:32)kittmaster Wrote: Now it is being said above that isn't how a skin it installed, funny, seems I can install other skins from Kodi repositories... that is my intent here, so it seems I'm doing it wrong, what should I be doing to have the skin install to have users update to the latest and greatest from the Github repository as I develop it?

Because you are conflating multiple concepts here. The part that is wrong is how you are attempting to use filemanager sources to download the skin.

The filemanager source is simply a shortcut for downloading the zip of your **repository** addon, and has nothing to do with the skin (you are attempting to link the skin here, which is wrong).

Forget about filemanager sources. You are not at that stage yet. You do not currently even have a working repository or a repository addon to install your repository. Focus on that first.
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
#9
I've spent 5 days in a circle jerk with this. Github is worthless, I've spent more time trying to figure that worthless site out than the reason why I'm here in the first place. I'm done, close this this.
Kodi: Nexus v20.5 | Skin: Madnox.redux : Current Version: 20.00.11 | Forum | Madnox.redux v3 Repo
Mr. V's Original Source
Reply
#10
I guess I'm not done with this.... disregard post 9, in hindsight I misunderstood the objective, I thought I was doing one thing but actually executing something else and figured out what my issue was. Fuel that with frustration.... you get post 9, so my apologies.

With some help from another skinner who's post I stumbled onto, the workflow was what I was shooting for and with some explanation, got set in the right direction. So what I have now is a functional repository that Kodi can see from Github.

The last piece of the puzzle is why I can't see my skin.madnox.zip file within my newly created and functioning repository. I started by using just the base install of Kodi and not Madnox just to ensure I wasn't doing something wrong skin related.

Using File Manager, this link is what is added to the source to install the repository:


As you can see, my repository now installs correctly, no crash, and calls the artwork (default for now) and you can enter the repository like the official Kodi:

Image

So when I enter my repository, I am expecting to find: 

Code:

skin.madnox-20.11.30.zip

But instead I see:

Image

The direct file link which is done similar to what the repository is:


Which clearly is present and downloadable.

The addons.xml points directly to the "zips" folder it lives in and I've taken the time to literally manually check every aspect of that folder, the addons.xml.md5, within the skin.madnox folder: addon.xml, the zip which link above shows working as download, and even the items in the resources folder..... all present via directly URL links in a Chrome Browser.

My understanding is that the addons.xml should point to the zip while within my repository and then I should be able to click the skin.madnox-20.11.30.zip file and it will install, just like any other script or plugin. I'm unclear as to why it isn't visible. I've tried to look at the xmbc repo skin but I don't see any addons.xml to compare to and I can't find an example to see if something is missing. But the <dir> with the 3 paths point to all the sources files, just like my repository, should allow it to be seen and then the user install it.

Here is the local file structure which Github Desktop mirrors and pushes up to my repo:

Image

Here is the full addons.xml file as it stands on Github now:

Code:

<?xml version='1.0' encoding='utf-8'?>
<addons><addon id="repository.kittmaster" name="KittmasterRepo" version="1.0.01" provider-name="kittmaster">
    <extension point="xbmc.addon.repository" name="Kittmaster Repository">
        <dir>
            <info compressed="false">https://raw.githubusercontent.com/kittmaster/KittmasterRepo/master/repo/zips/addons.xml</info>
            <checksum>https://raw.githubusercontent.com/kittmaster/KittmasterRepo/master/repo/zips/addons.xml.md5</checksum>
            <datadir zip="true">https://raw.githubusercontent.com/kittmaster/KittmasterRepo/master/repo/zips/</datadir>
        </dir>
    </extension>
    <extension point="xbmc.addon.metadata">
        <summary>KittmasterRepo</summary>
        <description>Kittmaster's Repository for Madnox</description>
        <disclaimer />
        <platform>all</platform>
        <assets>
            <icon>icon.png</icon>
            <fanart>fanart.jpg</fanart>
        </assets>
    </extension>
</addon><addon id="skin.madnox" version="20.11.30" name="Madnox" provider-name="Mr. V">
    <requires>
        <import addon="xbmc.gui" version="5.14.0" />
        <import addon="script.skinshortcuts" version="1.0.17" />
        <import addon="script.skin.helper.colorpicker" version="1.0.13" />
        <import addon="script.image.resource.select" version="2.0.4" />
    </requires>
    <extension point="xbmc.gui.skin" debugging="false">
        <res width="1920" height="1080" aspect="16:9" default="true" folder="16x9" />
    </extension>
    <extension point="xbmc.addon.metadata">
        <summary lang="en_GB">A feature rich and fully customisable skin</summary>
        <description lang="en_GB">Madnox stands for eye candy and customisation. There are many different views and options to present your media in the way you want it. All views are fully customisable. You can change the look with different styles, themes and options.</description>
        <disclaimer lang="en_GB">Madnox is the successor to Aeon Madnox by Mike_Doc, schimi2k and MeowMoo. It is a skin based on the design of Aeon by djh_ and Aeon Nox 4 by BigNoid and phil65. All credits to the makers of these skins and mods.</disclaimer>
        <platform>all</platform>
        <license>CC BY-SA 4.0, GNU GENERAL PUBLIC LICENSE Version 2.0</license>
        <forum />
        <source>https://github.com/mistervee/skin.madnox</source>
        <website>https://github.com/mistervee/skin.madnox</website>
        <assets>
            <icon>resources/icon.png</icon>
            <fanart>resources/fanart.jpg</fanart>
            <screenshot>resources/screenshots/screenshot-01.jpg</screenshot>
            <screenshot>resources/screenshots/screenshot-02.jpg</screenshot>
            <screenshot>resources/screenshots/screenshot-03.jpg</screenshot>
            <screenshot>resources/screenshots/screenshot-04.jpg</screenshot>
            <screenshot>resources/screenshots/screenshot-05.jpg</screenshot>
            <screenshot>resources/screenshots/screenshot-06.jpg</screenshot>
            <screenshot>resources/screenshots/screenshot-07.jpg</screenshot>
            <screenshot>resources/screenshots/screenshot-08.jpg</screenshot>
            <screenshot>resources/screenshots/screenshot-09.jpg</screenshot>
            <screenshot>resources/screenshots/screenshot-10.jpg</screenshot>
        </assets>
    </extension>
</addon></addons>


Soooooo, I'll continue digging, but does anyone have any pointers as to what is amiss? If I can just get past this last hurdle, I can actually start working on the skin.... Smile

Thank you.
Chris
Kodi: Nexus v20.5 | Skin: Madnox.redux : Current Version: 20.00.11 | Forum | Madnox.redux v3 Repo
Mr. V's Original Source
Reply
#11
(2024-02-28, 20:25)kittmaster Wrote: Soooooo, I'll continue digging, but does anyone have any pointers as to what is amiss? If I can just get past this last hurdle, I can actually start working on the skin.

Your addon.xml file from the skin is incorrect.
These lines don't belong there.
xml:
        <dir>
            <info compressed="false">https://raw.githubusercontent.com/kittmaster/KittmasterRepo/master/repo/zips/addons.xml</info>
            <checksum>https://raw.githubusercontent.com/kittmaster/KittmasterRepo/master/repo/zips/addons.xml.md5</checksum>
            <datadir zip="true">https://raw.githubusercontent.com/kittmaster/KittmasterRepo/master/repo/zips/</datadir>
        </dir>

These lines should only exist in your repo addon.xml
So of course the addon.xml from this link is also wrong:
https://github.com/kittmaster/Kittmaster...addons.xml

Result:
It only points to your repo.
Solution:
Change the addon.xml files and it works.
Reply
#12
That was a recent edition just to see if it was a path problem, it didn't work prior to that either. So I downloaded a plugin from the XMBC repo "where are you" and added it just to see if something was wrong. That work immediately and you can see by the screenshot, it loaded. Still "look/feel" is missing still even with the lines removed.

I found that the .py script wasn't compiling the skin so I added it to the parse list and I have all 3 successfully added and I pushed them with the 3 lines removed. I just tried again, refreshed and still no skin option. I'm just scratching my head... this should work. 

Any other thoughts?

Image

TY,
Chris
Kodi: Nexus v20.5 | Skin: Madnox.redux : Current Version: 20.00.11 | Forum | Madnox.redux v3 Repo
Mr. V's Original Source
Reply
#13
. read it wrong
Reply
#14
Take a look at my repo as an example, it's simple but it works.
I hope it helps you.

https://github.com/Fuchs246/repository.fuchs246
Reply
#15
Are you trying to install on Leia? Because your xbmc.gui version is too low for Matrix/Nexus (5.15)
https://github.com/kittmaster/Kittmaster...don.xml#L4

Your repo looks setup correctly. It is functioning correctly according to your addons.xml (which is valid as far as I can see)

The reason there are no skins displayed is because your repo doesn't contain any skins which can be installed on Nexus (xbmc.gui 5.15)

If you want a skin to be installed on Matrix/Nexus then you need to bump the version here from 5.14 to 5.15
Code:

<import addon="xbmc.gui" version="5.14.0"/>
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply

Logout Mark Read Team Forum Stats Members Help
Loading skin from repository crashes Kodi Nexus after following tutorial0