|
|
@@ -57,8 +57,6 @@ def write_xattr(path, attr, value):
|
|
|
def scan(files):
|
|
|
logger.debug(f"Scanning {len(files)} files")
|
|
|
media = []
|
|
|
- re_subs = re.compile(r'(?:\.(\w\w))?(?:\.(sdh))?\.srt$', re.IGNORECASE)
|
|
|
- re_media = re.compile(r'^(.*?)(?:\.\w\w)?(?:\.sdh)?\.((?:srt)|(?:mp4|m4v|mkv))$', re.IGNORECASE)
|
|
|
|
|
|
# Scan this directory for media
|
|
|
for file in files:
|
|
|
@@ -95,6 +93,8 @@ def scan(files):
|
|
|
|
|
|
def mux(media):
|
|
|
logger.debug(f"Muxing {len(media)} files")
|
|
|
+ re_subs = re.compile(r'(?:\.(\w\w))?(?:\.(sdh))?\.srt$', re.IGNORECASE)
|
|
|
+ re_media = re.compile(r'^(.*?)(?:\.\w\w)?(?:\.sdh)?\.((?:srt)|(?:mp4|m4v|mkv))$', re.IGNORECASE)
|
|
|
|
|
|
# Find groups
|
|
|
groups = {}
|