2012-04-19, 20:11
Repository Preparer
(repo_prep.py)
Could an admin please sticky this? I think repository owners will find this very useful.
I've written an update / replacement to addons_xml_generator.py
The latest version will always be hosted here
https://github.com/unobtanium/xbmc_repo_...po_prep.py
Which you can download from here:
https://raw.github.com/unobtanium/xbmc_r...po_prep.py
This includes some code improvements and a function to automatically generate a compressed repository structure.
So now you get the benefits of compressing your addons without the having to manually rename the changelog, zip the file etc, just by running repo-prep.py when you need to update your addons.xml
Full readme:
(repo_prep.py)
Could an admin please sticky this? I think repository owners will find this very useful.
I've written an update / replacement to addons_xml_generator.py
The latest version will always be hosted here
https://github.com/unobtanium/xbmc_repo_...po_prep.py
Which you can download from here:
https://raw.github.com/unobtanium/xbmc_r...po_prep.py
This includes some code improvements and a function to automatically generate a compressed repository structure.
So now you get the benefits of compressing your addons without the having to manually rename the changelog, zip the file etc, just by running repo-prep.py when you need to update your addons.xml
Full readme:
Quote:This is an:
- addons.xml generator
- addons.xml.md5 generator
- optional auto-compressor (including handling of icons, fanart and changelog)
Compression of addons in repositories has many benefits, including:
- Protects addon downloads from corruption.
- Smaller addon filesize resulting in faster downloads and less space / bandwidth used on the repository.
- Ability to "roll back" addon updates in XBMC to previous versions.
To enable the auto-compressor, set the compress_addons setting to True
NOTE: the settings.py of repository aggregator will override this setting.
If you do this you must make sure the "datadir zip" parameter in the addon.xml of your repository file is set to "true".