scivision / PyLivestream

Pure Python FFmpeg-based live video / audio streaming to YouTube, Facebook, Periscope, Twitch, and more
Apache License 2.0
707 stars 156 forks source link

Allow Nested Directories For Globs #73

Closed kylejbrk closed 2 years ago

kylejbrk commented 3 years ago

Would it be possible to add files in nested directories for globs?

According to the python docs, it looks like it might be as simple as setting recursive=True https://docs.python.org/3/library/glob.html#glob.glob

https://github.com/scivision/PyLivestream/blob/main/src/pylivestream/glob.py#L52

scivision commented 2 years ago

We use pathlib.Path.glob there that doesn't have a recursive= parameter. However, as with glob.glob, the user may specify the input path like "*/.mp3" to enact a recursive glob. Thanks for reaching out. I note this in 9edf095