Check-in [499156b19b]
Overview
| Comment: | Update to pluginconf 0.7.0 - more independent fallback functions, fix `id` tuple (again?!) |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
499156b19bed09e349b058582e1d6c9d |
| User & Date: | mario on 2020-10-30 19:33:39 |
| Other Links: | manifest | tags |
Context
|
2020-10-30
| ||
| 19:34 | peertube+youtube detection check-in: 7205e8f9b4 user: mario tags: trunk | |
| 19:33 | Update to pluginconf 0.7.0 - more independent fallback functions, fix `id` tuple (again?!) check-in: 499156b19b user: mario tags: trunk | |
|
2020-05-21
| ||
| 12:36 | Fix some links, add forgotten reddit help page. check-in: 3c42414ef6 user: mario tags: trunk | |
Changes
Modified pluginconf.py from [df594147c1] to [9101ebb380].
1 2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | - + - + + - + | # encoding: UTF-8 # api: python |
| ︙ | |||
78 79 80 81 82 83 84 | 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | + + + + - + + + + + + + - - - + + + + + |
import sys
import os
import re
import pkgutil
import inspect
try:
from distutils.spawn import find_executable
except:
try:
|
| ︙ | |||
222 223 224 225 226 227 228 | 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 | - + |
# fields from comment. Turns everything into an dict, with
# some stub fields if absent.
#
def plugin_meta_extract(src="", fn=None, literal=False):
# Defaults
meta = {
|
| ︙ | |||
280 281 282 283 284 285 286 287 288 289 290 291 292 293 | 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 | + |
"type": None,
"name": None,
"description": "",
"value": None
}
for field in rx.options.findall(entry):
opt[field[0]] = (field[1] or field[2] or field[3] or "").strip()
#@todo map type:
config.append(opt)
return config
# Comment extraction regexps
# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
# Pretty crude comment splitting approach. But works
|
| ︙ |