Check-in [55408c97f8]
Overview
| Comment: | Use gtk-info/-error/-no for placeholder entries. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
55408c97f88759b733937cadf84dc17d |
| User & Date: | mario on 2015-05-22 22:00:07 |
| Other Links: | manifest | tags |
Context
|
2015-05-22
| ||
| 22:00 | Support config option boolean aliases (1, true, yes, on). check-in: effbfc31f1 user: mario tags: trunk | |
| 22:00 | Use gtk-info/-error/-no for placeholder entries. check-in: 55408c97f8 user: mario tags: trunk | |
| 01:49 | Channel plugin for reddit /r/*music* categories. Just filters out Youtube or direct MP3/Ogg links at the moment. check-in: d840371943 user: mario tags: trunk | |
Changes
Modified channels/__init__.py from [d0e1f694ba] to [e059e8f474].
| ︙ | ︙ | |||
94 95 96 97 98 99 100 |
[False, 0, ["search_col", str, None, {}], ],
[False, 0, ["search_set", bool, None, {}], ],
]
rowmap = [] # [state,genre,title,...] field enumeration still needed separately
titles = {} # For easier adapting of column titles in datamap
# For empty grouping / categories
| | | | | 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
[False, 0, ["search_col", str, None, {}], ],
[False, 0, ["search_set", bool, None, {}], ],
]
rowmap = [] # [state,genre,title,...] field enumeration still needed separately
titles = {} # For easier adapting of column titles in datamap
# For empty grouping / categories
placeholder = [dict(state="gtk-info", genre="./.", title="Subcategory placeholder", playing="./.", url="none:", listeners=0, bitrate=0, homepage="")]
empty_stub = [dict(state="gtk-dialog-error", genre="./.", title="No categories found (website error)", playing="Try Channel→Reload Categories later..", url="none:", listeners=0, bitrate=0, homepage="")]
nothing_found = [dict(state="gtk-no", genre="./.", title="No contents found on directory server", playing="Notice", listeners=0, bitrate=0)]
# Title to homepage regex
rx_www_url = re.compile("""(www(\.\w+[\w-]+){2,}|(\w+[\w-]+[ ]?\.)+(com|FM|net|org|de|PL|fr|uk))""", re.I)
# Hooks for station list updating
prepare_filters = [] # run prior columns() display
postprocess_filters = [] # called after update_streams()
|
| ︙ | ︙ |