How to create a kodi repository?
#1
Hi,

Is anyone have updated guide how to make a repository and how to make a repository addon?
Is there any updated helper scripts or addons that can be useful for that?

Thanks.
Reply
#2
I don't think anything has changed for a while.  See the wiki.

scott s.
.
Reply
#3
And if you need the link: https://kodi.wiki/view/Add-on_repositories

@burekas You could download some repo addon and take a look at it for comparsion. For example you can download this one: https://repo.kodinerds.net/ (no need to worry. Kodinerds is a german Kodi forum)

Then extract the zip and look at the content for a template. 

At least you need some kind of web-storage where you are able to store the add-ons you have written. Github can also be used for that. Like this:

https://github.com/kodi-game/repository.kodi.game
Reply
#4
Thanks,
The repo addon itself seems to be simple.
But where all the addons are located and some needed files like md5, addons.xml etc... it seems to have kind of known struture of the files and their content.
Is there any script/addon that helps to do that automatically?

By the way, how I calculate the value inside the md5 file? It seems to hold a big number.
Reply
#5
(2021-12-30, 11:37)burekas Wrote: But where all the addons are located
Take a proper look at one of the addon.xml files and then you will see how others have stored their addons. 
 
(2021-12-30, 11:37)burekas Wrote: By the way, how I calculate the value inside the md5 file?

That´s a hash which verifies that the downloaded file wasn´t malformed or corrupted and is the correct file you expected to download. I can only speak for linux based systems where md5sum <filename> calculates the hash:

Image
Not sure how it will work on Windows. I guess it will be 100% the same on MacOS. 
(2021-12-30, 11:37)burekas Wrote: Is there any script/addon that helps to do that automatically?
This question makes me think you haven't even read the wiki I linked you to. Please do that and this question would be obsolete.
Reply
#6
I did read it on general.
And I see how the addons.xml is built.
Code:
<addons>
    <addon>
        ...
    </addon>
    <addon>
        ...
    </addon>
  ....
<addons>

But if I have a lot of addons, adding each to this xml can be annoying.
This is the reason why I asked for an automated script or something like this.
Reply
#7
(2021-12-30, 13:16)burekas Wrote: This is the reason why I asked for an automated script or something like this.

There is this on github that might do what you want. It's old though (python 2).
Learning Linux the hard way !!
Reply
#8
I also found this one, does anyone try this?
https://github.com/xbmc/repository-generator

EDIT: Updated version:
https://github.com/Twilight0/Repository-Bootstrapper
Reply
#9
(2021-12-30, 11:37)burekas Wrote: Thanks,
The repo addon itself seems to be simple.
But where all the addons are located and some needed files like md5, addons.xml etc... it seems to have kind of known struture of the files and their content.
Is there any script/addon that helps to do that automatically?

By the way, how I calculate the value inside the md5 file? It seems to hold a big number.
As a append, to what @DaVu said

on windows , you can use 'certutil' which comes preinstalled

e.g.
txt:
certutil -hashfile "addons.xml" md5 | find /i /v "md5" | find /i /v "certutil" > addons.xml.md5

i use it in a .bat to update my repo files, here is anextracted  example of a script  to show of the creation of md5 files
bat:

@echo off
setlocal
COLOR C
ECHO -------------------------------------------------------------------------
ECHO                   ** Create md5**
ECHO -------------------------------------------------------------------------

rem %~dp0 is just the current path of batch locations, its not strictly needed if you have placed the files there anyway, set path for test yourself, file should be self explaining

set "path=%~dp0"
set "file=addons.xml"
rem dont ommit pipe commands, output contain 3 lines, the find command extract unneccesarry stuf
certutil -hashfile "%path%\%file%" md5 | find /i /v "md5" | find /i /v "certutil" > %path%\%file%.md5

rem
rem example generate md5 for %skin_kodirepo_dir%\%skin_name%\%skin_name%-%skin_versionsuffix%.zip
rem certutil -hashfile "%skin_kodirepo_dir%\%skin_name%\%skin_name%-%skin_versionsuffix%.zip" md5 | find /i /v "md5" | find /i /v "certutil" > %skin_kodirepo_dir%\%skin_name%\%skin_name%-%skin_versionsuffix%.zip.md5
rem example generate md5 for %skin_kodirepo_dir%\addons.xml
rem certutil -hashfile "%skin_kodirepo_dir%\addons.xml" md5 | find /i /v "md5" | find /i /v "certutil" > %skin_kodirepo_dir%\addons.xml.md5


Terms the repo itself, it depends and vary a lot

- source (e.g. git hub , git lab)
- provide different folder available / ~ prefered structure
-
So a structure could be

*\repository.name\addons.xml
*\repository.name\addons.xml.md5
*\repository.name\someaddon\addon.xml
*\repository.name\someaddon\someaddon.zip
*\repository.name\someaddon\someaddon.zip.md5

and care about the difference between addons.xml and addon.xml

- addons.xml - contain all your single addons, to make it avail for your kodi repo
- addon.xml - belong to a single addons, to make it avail for your kodi repo
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#10
(2021-12-30, 13:58)mardukL Wrote: - addons.xml - contain all your single addons, to make it avail for your kodi repo
- addon.xml - belong to a single addons, to make it avail for your kodi repo

Thanks a lot.

Regarding to the creation of addons.xml.
Do you recommend on an automated tool that can create this file automatically assuming I have a lot of addons?
(For example maybe something what I posted here: https://forum.kodi.tv/showthread.php?tid...pid3077990)
Reply
#11
(2021-12-30, 14:20)burekas Wrote:
(2021-12-30, 13:58)mardukL Wrote: - addons.xml - contain all your single addons, to make it avail for your kodi repo
- addon.xml - belong to a single addons, to make it avail for your kodi repo

Thanks a lot.

Regarding to the creation of addons.xml.
Do you recommend on an automated tool that can create this file automatically assuming I have a lot of addons?
(For example maybe something what I posted here: https://forum.kodi.tv/showthread.php?tid...pid3077990)

If you're not not very experienced with the structure , which is the case than no ;-)

The thing is that you self should know about the structure, if 'script' creates ,lets say a addons.xml you cannot prove if the xml syntax inside is like it should be.

If you knkow about the structure , you can for sure test it and 'make human check' if the result is that what you expected from it.

The links above send by @DaVu are pretty helpfull, the other things need to investigated and learned by yourself....
But trust me, it isnt pretty hard ;-)
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#12
(2021-12-30, 13:54)burekas Wrote: I also found this one, does anyone try this?
https://github.com/xbmc/repository-generator

This is what the official kodi repository uses.
Reply
#13
@wsnipex 

Update:
I found this updated version script that you can use, follow the instructions, works well.

Old version: https://github.com/xbmc/repository-generator
The new version: https://github.com/Twilight0/Repository-Bootstrapper (Tested Python versions: 2.7.12+, 3.6.5)
Reply
#14
That new source is a banned addon (wiki) repo due to some of the other stuff that he supports.

So using it or stuff associated with it is not allowed here, please take great care.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#15
i have created a repo, but i cannot get it to work, i keep getting unable to connect. can anyone see the issue?

https://github.com/C4Wiz/Kodi_Repo
Reply

Logout Mark Read Team Forum Stats Members Help
How to create a kodi repository?0