17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# streamtuner2 modules
from config import conf
from mygtk import mygtk
import http
from channels import *
from channels import __print__
# python modules
import re
from xml.sax.saxutils import unescape as entity_decode, escape as xmlentities
import xml.dom.minidom
|
|
|
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# streamtuner2 modules
from config import conf
from mygtk import mygtk
import http
from channels import *
from config import __print__, dbg
# python modules
import re
from xml.sax.saxutils import unescape as entity_decode, escape as xmlentities
import xml.dom.minidom
|
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
else:
g[t] = 0
g = [ [v[1],v[0]] for v in g.items() ]
g.sort()
g.reverse()
for row in g:
pass
__print__( ' "' + row[1] + '", #' + str(row[0]) )
# xml dom node shortcut to text content
def x(self, entry, name):
e = entry.getElementsByTagName(name)
if (e):
if (e[0].childNodes):
|
|
|
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
else:
g[t] = 0
g = [ [v[1],v[0]] for v in g.items() ]
g.sort()
g.reverse()
for row in g:
pass
__print__( dbg.DATA, ' "' + row[1] + '", #' + str(row[0]) )
# xml dom node shortcut to text content
def x(self, entry, name):
e = entry.getElementsByTagName(name)
if (e):
if (e[0].childNodes):
|