spelling and add docstring

This commit is contained in:
jb-alvarado 2020-12-19 22:35:18 +01:00
parent bd1a2fc718
commit c6bbc47376
2 changed files with 5 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# Custom Filters
Sdd your one filters here. They must have the correct file naming:
Add your one filters here. They must have the correct file naming:
- for audio filter: a_[filter name].py
- for video filter: v_[filter name].py
The file it self should contain only one filter in a function named `def filter(prope):`
The file itself should contain only one filter in a function named `def filter(prope, type):`
Check **v_addtext.py** for example.

View File

@ -5,6 +5,9 @@ from ffplayout.utils import _text
def filter(probe):
"""
extract title from file name and overlay it
"""
font = ''
source = os.path.basename(probe.src)
match = re.match(_text.regex, source)