Check-in [01a94c1fb6]
Overview
Comment: | updated key mapping |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
01a94c1fb6392cb52f544a1c4cba56f3 |
User & Date: | mario on 2022-02-16 08:20:33 |
Other Links: | manifest | tags |
Context
2022-02-16
| ||
08:54 | update selectors for extraction check-in: 1dcb8f6e6b user: mario tags: trunk | |
08:20 | updated key mapping check-in: 01a94c1fb6 user: mario tags: trunk | |
08:16 | update regex extraction fallback check-in: 2f83c61edc user: mario tags: trunk | |
Changes
Modified pluginconf.py from [e8fc7319ee] to [8be49aad7c].
1 2 3 4 5 6 | # encoding: utf-8 # api: python # type: extract # category: config # title: Plugin configuration # description: Read meta data, pyz/package contents, module locating | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # encoding: utf-8 # api: python # type: extract # category: config # title: Plugin configuration # description: Read meta data, pyz/package contents, module locating # version: 0.7.5 # state: stable # classifiers: documentation # license: PD # priority: core # docs: https://fossil.include-once.org/pluginspec/ # url: http://fossil.include-once.org/streamtuner2/wiki/plugin+meta+data # config: - |
︙ | ︙ | |||
267 268 269 270 271 272 273 | # Split comment block if src.find("\n\n") > 0: src, meta["doc"] = src.split("\n\n", 1) # Turn key:value lines into dictionary for field in rx.keyval.findall(src): | | | 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 | # Split comment block if src.find("\n\n") > 0: src, meta["doc"] = src.split("\n\n", 1) # Turn key:value lines into dictionary for field in rx.keyval.findall(src): meta[field[0].replace("-", "_")] = field[1].strip() meta["config"] = plugin_meta_config(meta.get("config") or "") return meta # Unpack config: structures # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ |
︙ | ︙ |