Skip to content

Commit 0564c81

Browse files
committed
Merge remote-tracking branch 'upstream/openelec-5.0' into openelec-5.0
2 parents 7d1beef + 3bd9a03 commit 0564c81

81 files changed

Lines changed: 3035 additions & 3231 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

config/options

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ LINUX_DEPENDS="$PROJECT_DIR/$PROJECT/linux/linux.$TARGET_ARCH.conf $PROJECT_DIR/
7070
# Concurrency make level (-j option)
7171
# Try value 1 (default) to 4 on single CPU computer, or more on
7272
# multi-processor computer (like hyperthreading SMP CPU)
73-
CONCURRENCY_MAKE_LEVEL=`cat /proc/cpuinfo | grep -c '^processor[[:cntrl:]]*:'`
73+
if test -z "${CONCURRENCY_MAKE_LEVEL}"; then
74+
if test -z "${CONCURRENCY_MAKE_FACTOR}"; then
75+
CONCURRENCY_MAKE_FACTOR=1.0
76+
fi
77+
CONCURRENCY_MAKE_LEVEL=`echo "$(grep -c '^processor[[:cntrl:]]*:' /proc/cpuinfo) * ${CONCURRENCY_MAKE_FACTOR}" | bc | cut -d'.' -f1`
78+
fi
7479

7580
# cache size for ccache
7681
# Set the maximum size of the files stored in the cache. You can specify a

config/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# VERSION: set full version, use "devel" for development version
2-
OPENELEC_VERSION="4.95.2"
2+
OPENELEC_VERSION="4.95.3"
33

44
# OS_VERSION: OS Version
55
OS_VERSION="5.0"

packages/addons/driver/hdhomerun/changelog.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
4.3.2
2+
allow running scripts from addon settings
13
4.3.1
24
rebuild for addon api bump
35
4.3.0

packages/addons/driver/hdhomerun/package.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
PKG_NAME="hdhomerun"
2020
PKG_VERSION="4.3"
21-
PKG_REV="1"
21+
PKG_REV="2"
2222
PKG_ARCH="any"
2323
PKG_LICENSE="GPL"
2424
PKG_SITE="http://www.silicondust.com/products/hdhomerun/dvbt/"
Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
################################################################################
22
# This file is part of OpenELEC - http://www.openelec.tv
3-
# Copyright (C) 2009-2013 Stephan Raue (stephan@openelec.tv)
3+
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
44
#
55
# OpenELEC is free software: you can redistribute it and/or modify
66
# it under the terms of the GNU General Public License as published by
@@ -15,18 +15,3 @@
1515
# You should have received a copy of the GNU General Public License
1616
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
1717
################################################################################
18-
19-
import os
20-
import sys
21-
import xbmcaddon
22-
23-
__settings__ = xbmcaddon.Addon(id = 'driver.dvb.hdhomerun')
24-
__cwd__ = __settings__.getAddonInfo('path')
25-
__resources_lib__ = xbmc.translatePath(os.path.join(__cwd__, 'resources', 'lib'))
26-
__settings_xml__ = xbmc.translatePath(os.path.join(__cwd__, 'resources', 'settings.xml'))
27-
28-
if __name__ == "__main__" and len(sys.argv) == 2 and sys.argv[1] == 'refresh_tuners':
29-
sys.path.append(__resources_lib__)
30-
from functions import refresh_hdhomerun_tuners
31-
refresh_hdhomerun_tuners(__settings_xml__)
32-
__settings__.openSettings()
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
################################################################################
2+
# This file is part of OpenELEC - http://www.openelec.tv
3+
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
4+
#
5+
# OpenELEC is free software: you can redistribute it and/or modify
6+
# it under the terms of the GNU General Public License as published by
7+
# the Free Software Foundation, either version 2 of the License, or
8+
# (at your option) any later version.
9+
#
10+
# OpenELEC is distributed in the hope that it will be useful,
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
# GNU General Public License for more details.
14+
#
15+
# You should have received a copy of the GNU General Public License
16+
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
17+
################################################################################
18+
19+
import os
20+
import sys
21+
import xbmcaddon
22+
23+
__settings__ = xbmcaddon.Addon(id = 'driver.dvb.hdhomerun')
24+
__cwd__ = __settings__.getAddonInfo('path')
25+
__resources_lib__ = xbmc.translatePath(os.path.join(__cwd__, 'resources', 'lib'))
26+
__settings_xml__ = xbmc.translatePath(os.path.join(__cwd__, 'resources', 'settings.xml'))
27+
28+
if len(sys.argv) == 2 and sys.argv[1] == 'refresh_tuners':
29+
sys.path.append(__resources_lib__)
30+
from functions import refresh_hdhomerun_tuners
31+
refresh_hdhomerun_tuners(__settings_xml__)
32+
__settings__.openSettings()

packages/addons/driver/hdhomerun/source/resources/lib/xmlpp.py

Lines changed: 45 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -37,36 +37,39 @@ def _usage(this_file):
3737
return """SYNOPSIS: pretty print an XML document
3838
USAGE: python %s <filename> \n""" % this_file
3939

40-
def _pprint_line(indent_level, line, width=100, output=_sys.stdout):
40+
def _pprint_line(indent_level, line, width=100, output=_sys.stdout, ignore_contents = False):
4141
if line.strip():
4242
start = ""
4343
number_chars = 0
4444
for l in range(indent_level):
4545
start = start + " "
4646
number_chars = number_chars + 1
47-
try:
48-
elem_start = _re.findall("(\<\W{0,1}\w+:\w+) ?", line)[0]
49-
elem_finished = _re.findall("([?|\]\]/]*\>)", line)[0]
50-
#should not have *
51-
attrs = _re.findall("(\S*?\=\".*?\")", line)
52-
output.write(start + elem_start)
53-
number_chars = len(start + elem_start)
54-
for attr in attrs:
55-
if (attrs.index(attr) + 1) == len(attrs):
56-
number_chars = number_chars + len(elem_finished)
57-
if (number_chars + len(attr) + 1) > width:
58-
output.write("\n")
59-
for i in range(len(start + elem_start) + 1):
47+
if not ignore_contents:
48+
try:
49+
elem_start = _re.findall("(\<\W{0,1}\w+:\w+) ?", line)[0]
50+
elem_finished = _re.findall("([?|\]\]/|\-\-]*\>)", line)[0]
51+
#should not have *
52+
attrs = _re.findall("(\S*?\=\".*?\")", line)
53+
output.write(start + elem_start)
54+
number_chars = len(start + elem_start)
55+
for attr in attrs:
56+
if (attrs.index(attr) + 1) == len(attrs):
57+
number_chars = number_chars + len(elem_finished)
58+
if (number_chars + len(attr) + 1) > width:
59+
output.write("\n")
60+
for i in range(len(start + elem_start) + 1):
61+
output.write(" ")
62+
number_chars = len(start + elem_start) + 1
63+
else:
6064
output.write(" ")
61-
number_chars = len(start + elem_start) + 1
62-
else:
63-
output.write(" ")
64-
number_chars = number_chars + 1
65-
output.write(attr)
66-
number_chars = number_chars + len(attr)
67-
output.write(elem_finished + "\n")
68-
except IndexError:
69-
#give up pretty print this line
65+
number_chars = number_chars + 1
66+
output.write(attr)
67+
number_chars = number_chars + len(attr)
68+
output.write(elem_finished + "\n")
69+
except IndexError:
70+
#give up pretty print this line
71+
output.write(start + line + "\n")
72+
else:
7073
output.write(start + line + "\n")
7174

7275

@@ -80,7 +83,8 @@ def _get_next_elem(data):
8083
start_pos = data.find("<")
8184
end_pos = data.find(">") + 1
8285
retval = data[start_pos:end_pos]
83-
stopper = retval.rfind("/")
86+
stopper = retval.rfind("/")
87+
ignore_contents = False
8488
if stopper < retval.rfind("\""):
8589
stopper = -1
8690
single = (stopper > -1 and ((retval.find(">") - stopper) < (stopper - retval.find("<"))))
@@ -89,23 +93,32 @@ def _get_next_elem(data):
8993
ignore_question = retval.find("<?") > -1
9094

9195
if ignore_excl:
96+
ignore_contents = True
9297
cdata = retval.find("<![CDATA[") > -1
9398
if cdata:
9499
end_pos = data.find("]]>")
95100
if end_pos > -1:
96101
end_pos = end_pos + len("]]>")
102+
stopper = end_pos
103+
else:
104+
end_pos = data.find("-->")
105+
if end_pos > -1:
106+
end_pos = end_pos + len("-->")
107+
stopper = end_pos
108+
retval = data[start_pos:end_pos]
97109

98110
elif ignore_question:
99111
end_pos = data.find("?>") + len("?>")
100112
ignore = ignore_excl or ignore_question
101113

102114
no_indent = ignore or single
103115

104-
#print retval, end_pos, start_pos, stopper > -1, no_indent
116+
105117
return start_pos, \
106118
end_pos, \
107119
stopper > -1, \
108-
no_indent
120+
no_indent, \
121+
ignore_contents
109122

110123
def get_pprint(xml, indent=4, width=80):
111124
"""Returns the pretty printed xml """
@@ -116,6 +129,8 @@ def write(self, string):
116129
self.output += string
117130
out = out()
118131
pprint(xml, output=out, indent=indent, width=width)
132+
133+
119134

120135
return out.output
121136

@@ -126,7 +141,7 @@ def pprint(xml, output=_sys.stdout, indent=4, width=80):
126141
Use indent to select indentation level. Default is 4 """
127142
data = xml
128143
indent_level = 0
129-
start_pos, end_pos, is_stop, no_indent = _get_next_elem(data)
144+
start_pos, end_pos, is_stop, no_indent, ignore_contents = _get_next_elem(data)
130145
while ((start_pos > -1 and end_pos > -1)):
131146
_pprint_elem_content(indent_level, data[:start_pos].strip(),
132147
output=output)
@@ -136,15 +151,16 @@ def pprint(xml, output=_sys.stdout, indent=4, width=80):
136151
_pprint_line(indent_level,
137152
data[:end_pos - start_pos],
138153
width=width,
139-
output=output)
154+
output=output,
155+
ignore_contents=ignore_contents)
140156
data = data[end_pos - start_pos:]
141157
if not is_stop and not no_indent :
142158
indent_level = indent_level + indent
143159

144160
if not data:
145161
break
146162
else:
147-
start_pos, end_pos, is_stop, no_indent = _get_next_elem(data)
163+
start_pos, end_pos, is_stop, no_indent, ignore_contents = _get_next_elem(data)
148164

149165

150166
if __name__ == "__main__":

packages/addons/driver/hdhomerun/source/resources/settings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
<category label="9000">
1212
<setting type="sep" />
1313
<setting id="ENABLE_TUNER_TYPES" type="bool" label="9005" default="true" />
14-
<setting label="9010" option="close" type="action" action="RunScript($ID, refresh_tuners)" />
14+
<setting label="9010" option="close" type="action" id="refresh_tuners" action="RunScript($CWD/resources/actions.py, refresh_tuners)" />
1515
</category>
1616
</settings>

packages/addons/driver/sundtek-mediatv/changelog.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
4.3.4
22
fixed xbmc/kodi rebranding error
3-
removed driver update option (can't run script from addon settings anymore)
3+
some fixes
44
4.3.3
55
addon transformed to service addon
66
new addon settings option to enable to check for new driver at boot

packages/addons/driver/sundtek-mediatv/package.mk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,17 @@ make_target() {
4747
INSTALLER_URL="http://sundtek.de/media/netinst/armsysvhf/installer.tar.gz"
4848
;;
4949
esac
50+
5051
wget -O installer.tar.gz $INSTALLER_URL
52+
5153
tar -xzf installer.tar.gz
54+
5255
chmod -R 755 opt/ etc/
5356

57+
rm -f opt/bin/getinput.sh
58+
rm -f opt/bin/lirc.sh
59+
rm -fr opt/lib/pm/
60+
5461
wget -O version.used http://sundtek.de/media/latest.phtml
5562
}
5663

0 commit comments

Comments
 (0)