Skip to content

Commit f3ead0d

Browse files
authored
Minor Code Cleaning.
-> Make bugfix for audio and torrent files not working more efficient
1 parent d874c75 commit f3ead0d

File tree

1 file changed

+5
-3
lines changed
  • Source Code/Python Source Code/MRT

1 file changed

+5
-3
lines changed

Source Code/Python Source Code/MRT/v9.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
exit()
1111

1212
import os
13-
from shutil import move
13+
from shutil import move,copy
1414
try:
1515
import mutagen
1616
except:
@@ -40,19 +40,21 @@ def san():
4040
exit()
4141
elif x=='3':
4242
file=input('\n Enter Audio File:')
43-
y=move(file,'MRT')
43+
y=copy(file,'MRT')
4444
os.chdir('MRT')
4545
os.system('py mat2.py '+file)
4646
y=move(file.split('.')[0]+'.cleaned.'+file.split('.')[1],'..')
47+
os.remove(file)
4748
os.chdir('..')
4849
san()
4950
exit()
5051
elif x == '4':
5152
file=input('\n Enter Torrent File:')
52-
y=move(file,'MRT')
53+
y=copy(file,'MRT')
5354
os.chdir('MRT')
5455
os.system('py mat2.py '+file)
5556
y=move(file.split('.')[0]+'.cleaned.'+file.split('.')[1],'..')
57+
os.remove(file)
5658
os.chdir('..')
5759
san()
5860
exit()

0 commit comments

Comments
 (0)