Migrate from gitea
This commit is contained in:
commit
0d358fccce
5 changed files with 366 additions and 0 deletions
19
renombrar_subs/renombrar.py
Normal file
19
renombrar_subs/renombrar.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import sys
|
||||
import os
|
||||
import shutil
|
||||
|
||||
|
||||
ruta_base = sys.argv [1]
|
||||
|
||||
nombre_carpeta_subs = "Subs"
|
||||
ruta_subs = os.path.join(ruta_base,nombre_carpeta_subs)
|
||||
|
||||
for nombre in (subcarpeta for subcarpeta in os.listdir(ruta_subs) if not os.path.isfile(subcarpeta) ):
|
||||
ruta_subcarpeta = os.path.join(ruta_subs,nombre)
|
||||
nombre_fichero_sub = [x for x in os.listdir(ruta_subcarpeta) if "English" in x][0]
|
||||
|
||||
origen = os.path.join(ruta_subcarpeta,nombre_fichero_sub)
|
||||
destino = os.path.join(ruta_base,nombre+".en.srt")
|
||||
#print("oringe: "+origen)
|
||||
#print("destino: "+destino)
|
||||
shutil.copyfile(origen, destino)
|
||||
Loading…
Add table
Add a link
Reference in a new issue