Index: channels/internet_radio.py ================================================================== --- channels/internet_radio.py +++ channels/internet_radio.py @@ -108,88 +108,50 @@ continue # fin return entries - # Advertised - """ - - - - Flash Player - - Windows Media Player - - Winamp - iTunes - - Realplayer
-
80s 90s 00s Rock Disco Pop
- Featured - Box Uk Radio Danceradiouk -
Bow Wow Wow - I Want Candy -
http://danceradiouk.com - - 128 Kbps
22 Listeners
- GermanyCyprus - SwedenUnited Kingdom - RwandaMexico - Russian FederationSlovenia - CanadaTrinidad and Tobago - SwitzerlandHungary - Lithuania - - """ # Normal """ - - - Blank - - Windows Media Player - - Winamp - iTunes - - Realplayer -
Top 40
- Recommended - KissFM Romania - www.kissfm.ro - ---ALTERNATIVELY--- TDI Radio MP3 48kbps -
http://www.kissfm.ro - - 32 Kbps
5716 Listeners
- """ # Variation """ - - Blank - - Windows Media Player - - WinampiTunes - Realplayer -
Poprock Dance 50s Various
- Recommended - 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
+
+
+
+ +
+ +
+

SoftRockRadio.net - Classic Soft Rock (Soft Rock Radio)

+
+ Kenny Loggins - Heart To Heart
+ http://www.softrockradio.net +
Genres: 70s 80s classic rock + + +

+ 139 Listeners
+ 128 Kbps
+

+ PLS + M3U + RAM + FLA + """ # Regex extraction def with_regex(self, html): __print__(dbg.PROC, "internet-radio, regex") @@ -197,36 +159,25 @@ html = "\n".join(html) # Break up into blocks before extracting bits rx_tr = re.compile("""]*>(.+?)""", re.S) rx_data = re.compile(r""" - \?u=(https?://[^'">]+/listen\.pls) - .*? - ]+10px[^>]+>(.+?) - .*? - listing2 - .*? - (?:href="/station/[^>]+> | ) ([^<>]+) - (?:\s*\s*)* - (?:
\s*([^<>]+)\s*
)? - .*? - (?:]+class="url"[^>]+href="([^<">]+)")? - .+ - listing1 - .*? - (?:(\d+)\s+Kbps \s*
\s*)? - (?:(\d+)\s+Listeners)? - (?:\s*
\s*)? - \s* + playjp',\s*'(https?://[^'">]+) + .*? ([^<>]+)([^<>]+)
+ (?: .*? href="(.*?)" )? + (?: .*? Genres:((?:]+>|\w+|\s+)+) )? + .*? (\d+)\s*Listeners + .*? (\d+)\s*Kbps """, re.S|re.X) for div in rx_tr.findall(html): if div.find('id="pagination"') < 0: #__print__(dbg.DATA, len(div)) uu = rx_data.search(div) if uu: - (url, genres, title, playing, homepage, bitrate, listeners) = uu.groups() + (url, title, playing, homepage, genres, listeners, bitrate) = uu.groups() # transform data r.append({ "url": url, "genre": self.strip_tags(genres or ""),