stash_vroom.util module¶
This module has common and frequently-used functions, which have no big dependencies.
- stash_vroom.util.get_vid_re(extensions=('mp4', 'm4v', 'mkv', 'avi', 'webm', 'wmv', 'mov'))[source]¶
Return a regular expression pattern to match file extensions.
This is useful both for examining Python strings and also to submit to Stash as to find scenes with a regex filter. That is why this function returns a string and not a Python regex object.
- Parameters:
extensions – Optional list of
- Returns:
A regex pattern that matches video file extensions.
- Return type:
str