2020-11-27 12:27:05 +00:00
|
|
|
import os
|
|
|
|
|
|
|
|
DIRS = ['audio', 'generic', 'net', 'text', 'utils', 'video']
|
|
|
|
# Plugins whose name is prefixed by 'rs'
|
2022-01-12 07:47:12 +00:00
|
|
|
RS_PREFIXED = ['audiofx', 'closedcaption',
|
2022-04-11 09:52:13 +00:00
|
|
|
'dav1d', 'file', 'json', 'onvif', 'regex', 'webp']
|
2022-05-18 15:22:34 +00:00
|
|
|
OVERRIDE = {'wrap': 'rstextwrap', 'flavors': 'rsflv',
|
2022-07-19 06:02:47 +00:00
|
|
|
'ahead': 'textahead', 'tracers': 'rstracers',
|
|
|
|
'webrtc-http': 'webrtchttp'}
|
2020-11-27 12:27:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
def iterate_plugins():
|
|
|
|
for d in DIRS:
|
|
|
|
for name in os.listdir(d):
|
|
|
|
if name in RS_PREFIXED:
|
|
|
|
name = "rs{}".format(name)
|
|
|
|
else:
|
|
|
|
name = OVERRIDE.get(name, name)
|
|
|
|
yield name
|