Check-in [0db0cbed82]
Overview
| Comment: | Updated key. | 
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive | 
| Timelines: | family | ancestors | descendants | both | trunk | 
| Files: | files | file ages | folders | 
| SHA1: | 0db0cbed82e75bc3379635d01b2755c8 | 
| User & Date: | mario on 2015-03-24 21:09:25 | 
| Other Links: | manifest | tags | 
Context
| 2015-03-24 | ||
| 21:09 | Remove MusciGoal plugin, API seems gone. check-in: 900a5ca1af user: mario tags: trunk | |
| 21:09 | Updated key. check-in: 0db0cbed82 user: mario tags: trunk | |
| 02:02 | Fixed internet_radio basic regex extraction. check-in: 6c2dc3f04e user: mario tags: trunk | |
Changes
Modified channels/dirble.py from [a30ec4e248] to [31ed68ff70].
| ︙ | ︙ | |||
| 9 10 11 12 13 14 15 | # documentation: http://dirble.com/developer/api # # Provides a nice JSON API, so is easy to support. # # However useful station information (homepage, etc.) only # with extraneous requests. So just for testing as of now. # | < | < > | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # documentation: http://dirble.com/developer/api # # Provides a nice JSON API, so is easy to support. # # However useful station information (homepage, etc.) only # with extraneous requests. So just for testing as of now. # # ST2 users may have to get a custom Dirble.com key; # last one got disabled. # import re import json from config import conf, dbg, __print__ from channels import * | 
| ︙ | ︙ | |||
| 43 44 45 46 47 48 49 | 
         "value": "",
         "type": "text",
         "description": "Custom API access key."
        },
        {"name": "dirble_fetch_homepage",
         "value": 0,
         "type": "boolean",
 | | | | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | 
         "value": "",
         "type": "text",
         "description": "Custom API access key."
        },
        {"name": "dirble_fetch_homepage",
         "value": 0,
         "type": "boolean",
         "description": "Also fetch homepages when updating stations. (This is super slow, as it requires one extra request for each station.)"
        }
    ]    
    catmap = {}
    
    base = "http://api.dirble.com/v1/%s/apikey/%s/"
    cid = "a0bdd7b8efc2f5d1ebdf1728b65a07ece4c73de5"
    # Retrieve cat list and map
    def update_categories(self):
        self.categories = []
        # Main categories
        for row in self.api("primaryCategories"):
 | 
| ︙ | ︙ |