ZiB 10 месяцев назад
Родитель
Сommit
077be1ce09
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      loki/remux.py

+ 3 - 3
loki/remux.py

@@ -119,8 +119,8 @@ def mux(media):
     sources = []
     subs    = []
     videos  = []
-    temp    = group[0]['path'].parent.joinpath(f'{group[0]['base']}-remux.mkv')
     final   = group[0]['path'].parent.joinpath(f'{group[0]['base']}.mkv')
+    temp    = final.with_suffix('.mkv-remux')
     args    = [ 'mkvmerge', '--default-language', lang_default, '-o', temp ]
     for file in group:
 
@@ -221,7 +221,7 @@ def lang(media):
   
   for file in media:
     logger.debug(f"Lang: {file['name']}")
-
+    
     # Skip files tha do not need lang processing
     if 'lang_vers' in file and file['lang_vers'] and file['lang_vers'] >= lang_vers:
       logger.debug(f"Skipping item with current lang_vers: {file['path']}")
@@ -262,4 +262,4 @@ for (parent, dirs, files) in root.walk():
   logger.debug(f"Walking: {parent}")
   media = scan(files)
   mux(media)
-  lang(media)
+  lang(media)