Index: channels/internet_radio.py
==================================================================
--- channels/internet_radio.py
+++ channels/internet_radio.py
@@ -2,15 +2,22 @@
# api: streamtuner2
# title: Internet-Radio.com
# description: Broad list of webradios from all genres.
# type: channel
# category: radio
-# version: 0.2
+# version: 1.1
# priority: standard
#
+# Internet-Radio.co.uk/.com is one of the largest directories of streams.
+# Available music genre classifications are mirrored verbatim and flatly.
+#
+# The new version of this plugin alternates between PyQuery and Regex
+# station extraction. Both overlook some paid or incomplete entries.
+# HTTP retrieval happens in one batch, determined by the number of pages
+# setting, rather than the global max_streams option.
#
-# Might become new main plugin
+#
#
#
#
@@ -34,11 +41,17 @@
homepage = "http://www.internet-radio.org.uk/"
listformat = "audio/x-scpls"
# settings
config = [
- {"name":"internetradio_max_pages", "type":"int", "value":5, "description":"How many pages to fetch and read."},
+ {
+ "name": "internetradio_max_pages",
+ "type": "int",
+ "value": 5,
+ "category": "limit",
+ "description": "How many pages to fetch and read.",
+ },
]
# category map
categories = []
@@ -53,99 +66,199 @@
rx = re.compile("""""")
self.categories = rx.findall(html)
-
-
-
# fetch station lists
def update_streams(self, cat, force=0):
entries = []
if cat not in self.categories:
return []
-
- # regex
- #rx_div = re.compile('
+ Jack and Jill Radio Pop Rock Dance 50s Big Band Classical Country Folk Jazz Blue
+ Vince Gill - When Love Finds You - (Album)When Love Finds You - 1994 Countr
+ http://www.jackandjillradio.com
+
+ 24 Kbps
+ """
+
+ # Regex extraction
+ def with_regex(self, html):
+ __print__(dbg.PROC, "internet-radio, regex")
+ r = []
+ html = "\n".join(html)
+
+ # Break up into
blocks before extracting bits
+ rx_tr = re.compile("""