mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-25 04:48:37 -06:00
fix: Move subtitles with language tag
This commit is contained in:
parent
a42b2ce61c
commit
208e42fadb
1 changed files with 3 additions and 0 deletions
|
@ -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.')
|
||||||
|
|
Loading…
Reference in a new issue