Internet radio browser GUI for music/video streams from various directory services.

⌈⌋ ⎇ branch:  streamtuner2


Check-in [b23180bba7]

Overview
Comment:Remove _=time from streaminfo json urls.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b23180bba7abe790e24a3bed90cdf3132ebd4d13
User & Date: mario on 2015-05-18 00:28:46
Other Links: manifest | tags
Context
2015-05-18
00:29
Strip double .png/.jpeg extension from cached `img` icons. check-in: 77ab1e927e user: mario tags: trunk
00:28
Remove _=time from streaminfo json urls. check-in: b23180bba7 user: mario tags: trunk
00:28
Minor simplifications in manual, remove iCast page. check-in: 54d59ae47f user: mario tags: trunk
Changes

Modified contrib/radionet.py from [c0fc5f6544] to [fd082e7fa6].

1
2
3
4
5
6

7
8
9
10
11
12
13
1
2
3
4
5

6
7
8
9
10
11
12
13





-
+







# encoding: UTF-8
# api: streamtuner2
# title: radio.net
# description: Europe's biggest radio platform
# url: http://radio.net/
# version: 0.3
# version: 0.4
# type: channel
# category: radio
# png:
#   iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAt0lEQVR42mNgYGD4r+Ar/F/BDwkD+SBxojBMs1mLPBArgGlFqEEENYMNQNLsukIDYkirAvGu
#   ABsA1OC6XOP/5f8nwIaYAg0k2gBFsAsgTgcZkvnfDugFEeK9AFKsCPMG0CU6eZJgQ4R1eP8H7LLEivWyFJANQcQCLPBAmkGG4MJohmA6C6QA5gI5OxEUDNII
#   MwSvASBFIA3ociCxkWQAKMDICkSQIpgh2LDnSmP80YhsCFEJiRIMADpmeUOpqgjRAAAAAElFTkSuQmCC
# priority: optional
104
105
106
107
108
109
110
111
112
113




114
115
116
117
118
119
120
121
122
123
104
105
106
107
108
109
110



111
112
113
114
115
116
117
118
119
120
121
122
123
124







-
-
-
+
+
+
+










                ));
        return r
    

    # Patch together JSON station info URL
    def _url(self, name):
        return \
        "{}/search/station?_={}&apikey={}&pageindex=1&station={}".format(
            self.apiPrefix, time.time(), self.apiKey, name
        )
        "{}/search/station?apikey={}&pageindex=1&station={}".format(
            self.apiPrefix, self.apiKey, name
        )      # '?_={time}&' is omitted here, only relevant to jQuery/AJAX,
               # and just made bookmarks.is_in() fail due to randomized URLs


    # extract JavaScript key from any HTML blob (needed for station query)
    def set_key(self, html):
        ls = re.findall("""apiKey: '(\w+)'""", html)
        if ls:
            self.apiKey = ls[0]