repo deleted
This commit is contained in:
64
addons.xml
64
addons.xml
@@ -1,64 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<addons>
|
||||
<addon id="plugin.video.alfa" name="Alfa-Addon" version="0.0.1" provider-name="unknown">
|
||||
<requires>
|
||||
<import addon="xbmc.python" version="2.1.0"/>
|
||||
<import addon="script.module.libtorrent" optional="true"/>
|
||||
</requires>
|
||||
<extension point="xbmc.python.pluginsource" library="default.py">
|
||||
<provides>video</provides>
|
||||
</extension>
|
||||
<extension point="xbmc.addon.metadata">
|
||||
<summary lang="es">Sumario en Español</summary>
|
||||
<description lang="es">Descripción en Español</description>
|
||||
<summary lang="en">English summary</summary>
|
||||
<description lang="en">English description</description>
|
||||
<platform>all</platform>
|
||||
<license>GNU GPL v3</license>
|
||||
<forum>foro</forum>
|
||||
<website>web</website>
|
||||
<email>my@email.com</email>
|
||||
<source>source</source>
|
||||
</extension>
|
||||
<extension point="xbmc.service" library="videolibrary_service.py" start="login|startup">
|
||||
</extension>
|
||||
</addon>
|
||||
|
||||
<addon id="plugin.video.alfa" name="Alfa-Addon" version="0.0.1" provider-name="unknown">
|
||||
<requires>
|
||||
<import addon="xbmc.python" version="2.1.0"/>
|
||||
<import addon="script.module.libtorrent" optional="true"/>
|
||||
</requires>
|
||||
<extension point="xbmc.python.pluginsource" library="default.py">
|
||||
<provides>video</provides>
|
||||
</extension>
|
||||
<extension point="xbmc.addon.metadata">
|
||||
<summary lang="es">Sumario en Español</summary>
|
||||
<description lang="es">Descripción en Español</description>
|
||||
<summary lang="en">English summary</summary>
|
||||
<description lang="en">English description</description>
|
||||
<platform>all</platform>
|
||||
<license>GNU GPL v3</license>
|
||||
<forum>foro</forum>
|
||||
<website>web</website>
|
||||
<email>my@email.com</email>
|
||||
<source>source</source>
|
||||
</extension>
|
||||
<extension point="xbmc.service" library="videolibrary_service.py" start="login|startup">
|
||||
</extension>
|
||||
</addon>
|
||||
|
||||
<addon id="repository.alfa-addon" name="[COLOR red]Alfa-Addon[/COLOR] Repo" version="1.0.1" provider-name="Alfa-Addon">
|
||||
<extension point="xbmc.addon.repository" name="Alfa-Addon Repo">
|
||||
<info>https://raw.githubusercontent.com/alfa-addon/addon/master/addons.xml</info>
|
||||
<checksum>https://raw.githubusercontent.com/alfa-addon/addon/master/addons.xml.md5</checksum>
|
||||
<datadir zip="true">https://raw.githubusercontent.com/alfa-addon/addon/master/</datadir>
|
||||
</extension>
|
||||
<extension point="xbmc.addon.metadata">
|
||||
<summary>Repositorio para Alfa-Addon</summary>
|
||||
<description></description>
|
||||
<disclaimer>The owners and submitters to this repository do not host or distribute any of the content displayed by these addons nor do they have any affiliation with the content providers.</disclaimer>
|
||||
<platform>all</platform>
|
||||
</extension>
|
||||
</addon>
|
||||
</addons>
|
||||
@@ -1 +0,0 @@
|
||||
0b713379b036dc9055c2721f229ce4f1
|
||||
@@ -1,73 +0,0 @@
|
||||
""" addons.xml generator """
|
||||
|
||||
import os
|
||||
import md5
|
||||
|
||||
|
||||
class Generator:
|
||||
"""
|
||||
Generates a new addons.xml file from each addons addon.xml file
|
||||
and a new addons.xml.md5 hash file. Must be run from the root of
|
||||
the checked-out repo. Only handles single depth folder structure.
|
||||
"""
|
||||
def __init__( self ):
|
||||
# generate files
|
||||
self._generate_addons_file()
|
||||
self._generate_md5_file()
|
||||
# notify user
|
||||
print "Finished updating addons xml and md5 files"
|
||||
|
||||
def _generate_addons_file( self ):
|
||||
# addon list
|
||||
addons = os.listdir( "." )
|
||||
# final addons text
|
||||
addons_xml = u"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<addons>\n"
|
||||
# loop thru and add each addons addon.xml file
|
||||
for addon in addons:
|
||||
try:
|
||||
# skip any file or .svn folder
|
||||
if ( not os.path.isdir( addon ) or addon == ".svn" ): continue
|
||||
# create path
|
||||
_path = os.path.join( addon, "addon.xml" )
|
||||
# split lines for stripping
|
||||
xml_lines = open( _path, "r" ).read().splitlines()
|
||||
# new addon
|
||||
addon_xml = ""
|
||||
# loop thru cleaning each line
|
||||
for line in xml_lines:
|
||||
# skip encoding format line
|
||||
if ( line.find( "<?xml" ) >= 0 ): continue
|
||||
# add line
|
||||
addon_xml += unicode( line.rstrip() + "\n", "UTF-8" )
|
||||
# we succeeded so add to our final addons.xml text
|
||||
addons_xml += addon_xml.rstrip() + "\n\n"
|
||||
except Exception, e:
|
||||
# missing or poorly formatted addon.xml
|
||||
print "Excluding %s for %s" % ( _path, e, )
|
||||
# clean and add closing tag
|
||||
addons_xml = addons_xml.strip() + u"\n</addons>\n"
|
||||
# save file
|
||||
self._save_file( addons_xml.encode( "UTF-8" ), file="addons.xml" )
|
||||
|
||||
def _generate_md5_file( self ):
|
||||
try:
|
||||
# create a new md5 hash
|
||||
m = md5.new( open( "addons.xml" ).read() ).hexdigest()
|
||||
# save file
|
||||
self._save_file( m, file="addons.xml.md5" )
|
||||
except Exception, e:
|
||||
# oops
|
||||
print "An error occurred creating addons.xml.md5 file!\n%s" % ( e, )
|
||||
|
||||
def _save_file( self, data, file ):
|
||||
try:
|
||||
# write data to the file
|
||||
open( file, "w" ).write( data )
|
||||
except Exception, e:
|
||||
# oops
|
||||
print "An error occurred saving %s file!\n%s" % ( file, e, )
|
||||
|
||||
|
||||
if ( __name__ == "__main__" ):
|
||||
# start
|
||||
Generator()
|
||||
@@ -1,54 +0,0 @@
|
||||
""" zip generator """
|
||||
|
||||
import os
|
||||
import zipfile
|
||||
|
||||
|
||||
class Generator:
|
||||
"""
|
||||
Original code from addons_xml_generator.py
|
||||
"""
|
||||
def __init__( self ):
|
||||
# generate files
|
||||
self._generate_addons_file()
|
||||
# notify user
|
||||
print "Finished creating zip file"
|
||||
|
||||
def _generate_addons_file( self ):
|
||||
# addon list
|
||||
addons = os.listdir( "." )
|
||||
# final addons text
|
||||
# loop thru and add each addons addon.xml file
|
||||
for addon in addons:
|
||||
try:
|
||||
# skip any file or .svn folder
|
||||
if ( not os.path.isdir( addon ) or addon == ".svn" ): continue
|
||||
# create path
|
||||
_path = os.path.join( addon, "addon.xml" )
|
||||
# split lines for stripping
|
||||
xml_lines = open( _path, "r" ).read().splitlines()
|
||||
# loop thru cleaning each line
|
||||
for line in xml_lines:
|
||||
# skip encoding format line
|
||||
if line.find("<addon") >= 0:
|
||||
version = line[line.find('version="') + 9:]
|
||||
version = version[:version.find('"')]
|
||||
break
|
||||
# add line
|
||||
filenamezip = '.\\' + addon + '.\\' + addon + '-' + version
|
||||
print addon
|
||||
zf = zipfile.ZipFile(filenamezip + ".zip", "w")
|
||||
for dirname, subdirs, files in os.walk(addon):
|
||||
zf.write(dirname)
|
||||
for filename in files:
|
||||
if '.zip' not in filename:
|
||||
zf.write(os.path.join(dirname, filename))
|
||||
zf.close()
|
||||
except Exception, e:
|
||||
# missing or poorly formatted addon.xml
|
||||
print "Excluding %s for %s" % ( _path, e, )
|
||||
|
||||
|
||||
if ( __name__ == "__main__" ):
|
||||
# start
|
||||
Generator()
|
||||
Binary file not shown.
@@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<addon id="repository.alfa-addon" name="[COLOR red]Alfa-Addon[/COLOR] Repo" version="1.0.1" provider-name="Alfa-Addon">
|
||||
<extension point="xbmc.addon.repository" name="Alfa-Addon Repo">
|
||||
<info>https://raw.githubusercontent.com/alfa-addon/addon/master/addons.xml</info>
|
||||
<checksum>https://raw.githubusercontent.com/alfa-addon/addon/master/addons.xml.md5</checksum>
|
||||
<datadir zip="true">https://raw.githubusercontent.com/alfa-addon/addon/master/</datadir>
|
||||
</extension>
|
||||
<extension point="xbmc.addon.metadata">
|
||||
<summary>Repositorio para Alfa-Addon</summary>
|
||||
<description></description>
|
||||
<disclaimer>The owners and submitters to this repository do not host or distribute any of the content displayed by these addons nor do they have any affiliation with the content providers.</disclaimer>
|
||||
<platform>all</platform>
|
||||
</extension>
|
||||
</addon>
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.7 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 87 KiB |
Binary file not shown.
Reference in New Issue
Block a user