Index: channels/_generic.py
==================================================================
--- channels/_generic.py
+++ channels/_generic.py
@@ -47,11 +47,11 @@
class GenericChannel(object):
# desc
module = "generic"
title = "GenericChannel"
- homepage = "http://milki.inlcude-once.org/streamtuner2/"
+ homepage = "http://fossil.include-once.org/streamtuner2/"
base_url = ""
listformat = "audio/x-scpls"
audioformat = "audio/mpeg" # fallback value
config = []
has_search = False
Index: channels/shoutcast.py
==================================================================
--- channels/shoutcast.py
+++ channels/shoutcast.py
@@ -61,17 +61,17 @@
# extracts the category list from shoutcast.com,
# sub-categories are queried per 'AJAX'
def update_categories(self):
html = http.get(self.base_url)
self.categories = []
- __print__( dbg.DATA, html )
+ #__print__( dbg.DATA, html )
#
Radio Genres
rx = re.compile(r'[\w\s]+', re.S)
sub = []
for uu in rx.findall(html):
- __print__( dbg.DATA, uu )
+ #__print__( dbg.DATA, uu )
(main,name,id) = uu
name = urllib.unquote(name)
# main category
if main:
@@ -81,11 +81,11 @@
self.categories.append(name)
else:
sub.append(name)
# it's done
- __print__( dbg.PROC, self.categories )
+ #__print__( dbg.PROC, self.categories )
conf.save("cache/categories_shoutcast", self.categories)
pass
# downloads stream list from shoutcast for given category
Index: mygtk.py
==================================================================
--- mygtk.py
+++ mygtk.py
@@ -132,12 +132,12 @@
# apply attributes
for attr,val in list(cell[3].items()):
col.add_attribute(rend, attr, val)
# next
datapos += 1
+ #__print__(dbg.INFO, cell, len(cell))
- __print__(dbg.INFO, cell, len(cell))
# add column to treeview
widget.append_column(col)
# finalize widget
widget.set_search_column(5) #??
widget.set_search_column(4) #??
@@ -218,11 +218,11 @@
@staticmethod
def tree(widget, entries, title="category", icon=gtk.STOCK_DIRECTORY):
# list types
ls = gtk.TreeStore(str, str)
- print(entries)
+ #__print__(dbg.DATA, ".tree", entries)
# add entries
for entry in entries:
if isinstance(entry, (str,unicode)):
main = ls.append(None, [str(entry), icon])