XBMC Community Forum
[CONCEPT] Aggregate Unofficial Repository - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Python Add-on Development (/forumdisplay.php?fid=26)
+--- Thread: [CONCEPT] Aggregate Unofficial Repository (/showthread.php?tid=92775)

Pages: 1 2 3


[CONCEPT] Aggregate Unofficial Repository - anarchintosh - 2011-02-01 00:18

I'm just saying, it would be nice Smile

(would exclude adult repositories, for which there could possibly be a second aggregate)

There is now a tonne of repositories on the wiki, most containing only a handful of add-ons. It's inefficient to have to download them all and install from zip if your looking for cool add-ons.

Since add-ons (including repositories) addon.xml can contain multiple extension points, it would be feasible to create a repo file containing multiple repository extension points. This file could then be uploaded to the wiki page for people who want to check out all possible add-ons.

I'll look into making this aggregate repo, and a wiki page for how to add your repo to it for developers.


- maruchan - 2011-02-01 06:46

Yeah, this would be great Smile


- vikjon0 - 2011-02-01 09:22

I think this is mostly a matter of study up on git. Possibly a few manual steps is needed, like checking out a local copy running a create addon.xml script.


- anarchintosh - 2011-02-01 17:07

tried creating a test. what seemed to happen was some messy metadata stuff, with the same repository showing up multiple times (depending on how many xbmc.addon.repository extension points were in the xml)

there now seem to be two options:
1) beg xbmc team to support a way to aggregate multiple repositories into one, as an 'Unofficial Add-ons' zip file.
2) use some kind of workaround, either through cloning peoples repositories regularly or a repository that hosts repository files.

before someone says 'Why don't you all just submit your addons to the same repository', i and many other add-on coders like the autonomy of owning our own repositories for our own addons, and not having to ask to be added as a committer to another repo. what is needed is to give users a way to access a unified 'Unofficial Addons' section, or many users will fail to discover brilliant add-ons like Hulu, iPlayer etc.

to sum up: Users like one place to get their add-ons, coders like dealing with their own repository.


- vikjon0 - 2011-02-01 18:09

I need to read up on this but,
you can only pull a complete git repository, not a sub folder? Meaning that if I want to submit an add-to the official repo I have to break up my repo and have one per add-on?

This is basically the same problem you are talking about?

I am not sure what other better options exists in git, but a workaround should be possible.
Do you use this script? https://github.com/vikjon0/qf-xbmc-addons/blob/master/addons_xml_generator.py

What happens if you modify it not to add other repository xml files? If nothing else works it must be possible to modify it to completly delete them.


- Temhil - 2011-02-01 18:19

I think it could be even simpler, an addon listing all the repositories (or even parsing the wiki page) and retrieving the repository.zip for each of them (eventually triggering the install, but that depend if XBMC provide the python API to do that). This addon being in the official repository.
So even thus if the install is not triggered automatically, the user would habe just to install from zip the downloaded repo.zip file.

I think that would make it easy to the end user. The only think to maintain being the list of the unofficial repo within this addon.
So no need to have someone merging all the repo, hunting for each new addon coming, at the time of the Installer Passion-XBMC I add to update on weekly (sometime daily) our FTP server with all the new script/plugin retrieved from other location and I can tell it is a lot of work and it is not realistic to do that.


- ppic - 2011-02-01 18:21

i don't think that xbmc team will help you there, i've proposed to make an unofficial repo installer addon, that would list the unofficial repository and install those you want, they clearly answered that it wouldn't be include in the official repo.


- CrashX - 2011-02-01 18:33

anarchintosh Wrote:1) beg xbmc team to support a way to aggregate multiple repositories into one, as an 'Unofficial Add-ons' zip file.

I can create a patch with fix if xbmc team agrees too it !!


- Temhil - 2011-02-01 18:51

ppic Wrote:i don't think that xbmc team will help you there, i've proposed to make an unofficial repo installer addon, that would list the unofficial repository and install those you want, they clearly answered that it wouldn't be include in the official repo.

I think it is still a good idea, in the worst case scenario (meaning this addon wouldn't be added to the official repo), user would have to install this addon once and then would have access to alll the unofficial repo.

The issue here is more if XBMC provide or not a Python API for installing an addon in XBMC.
It would be possible to do it manually, but XBMC addon installer is doing a lot of more than just copying file to the right location (i.e check and download required modules), but I guess in this particular case it could work since it is only repository not a full addon.


- vikjon0 - 2011-02-01 19:10

Anyway, I made a qick test and it works as I expected.
If you want to create a master repo and you dont want to see the other repositores you just have to change the create script to:
Quote: if ( not os.path.isdir( addon ) or addon == ".git" or(addon[0:10] == "repository"\
and addon!= "repository.unofficalmaster.addons")): continue

EDIT: Well, provided that the name of your repo is repository.unofficalmaster.addons.


- daledude - 2011-02-01 19:51

ppic Wrote:i don't think that xbmc team will help you there, i've proposed to make an unofficial repo installer addon, that would list the unofficial repository and install those you want, they clearly answered that it wouldn't be include in the official repo.

Did you happen to write any code to do this?


- ppic - 2011-02-01 22:20

no, but not much lines needed, no really big dificulty


- igotdvds - 2011-02-01 22:28

ppic Wrote:no, but not much lines needed, no really big dificulty

Not for you. The python phenomenon! Big Grin


- ppic - 2011-02-01 22:34

lol, that wasn't what i was saying, but yes, it can be a good start for a python beginner, you can use plugin's functions to display the list you've got when parsing wiki page, then unpack the repo in the good directory, then restart xbmc for the repo to be recognized.


- anarchintosh - 2011-02-02 01:01

neat, glad to see so many other people keen on this idea. Smile

ppic I like the idea of a program addon that scrapes the wiki page for new repos and automatically installs them.

Maybe it could run an autoexec.py at startup, or use this http://forum.xbmc.org/showthread.php?tid=92751 feature in Eden

That way, new repos added to wiki page could be automatically pushed to people when they start up XBMC.