1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-25 20:58:37 -06:00

fix: Move subtitles with language tag

This commit is contained in:
Sayantan Santra 2023-10-09 15:45:18 -05:00
parent a42b2ce61c
commit 208e42fadb
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -25,6 +25,9 @@ for x in files:
if os.path.isfile(basename+'.srt'): if os.path.isfile(basename+'.srt'):
os.rename(path+'/'+basename+'.srt', path + os.rename(path+'/'+basename+'.srt', path +
'/'+basename+'/'+basename+'.srt') '/'+basename+'/'+basename+'.srt')
if os.path.isfile(basename+'.en.srt'):
os.rename(path+'/'+basename+'.en.srt', path +
'/'+basename+'/'+basename+'.en.srt')
ctr += 1 ctr += 1
print(str(ctr)+' folder(s) created.') print(str(ctr)+' folder(s) created.')