Skip to content

Commit

Permalink
Minor Code Cleaning.
Browse files Browse the repository at this point in the history
-> Make bugfix for audio and torrent files not working more efficient
  • Loading branch information
Anish-M-code authored Aug 11, 2022
1 parent d874c75 commit f3ead0d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Source Code/Python Source Code/MRT/v9.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
exit()

import os
from shutil import move
from shutil import move,copy
try:
import mutagen
except:
Expand Down Expand Up @@ -40,19 +40,21 @@ def san():
exit()
elif x=='3':
file=input('\n Enter Audio File:')
y=move(file,'MRT')
y=copy(file,'MRT')
os.chdir('MRT')
os.system('py mat2.py '+file)
y=move(file.split('.')[0]+'.cleaned.'+file.split('.')[1],'..')
os.remove(file)
os.chdir('..')
san()
exit()
elif x == '4':
file=input('\n Enter Torrent File:')
y=move(file,'MRT')
y=copy(file,'MRT')
os.chdir('MRT')
os.system('py mat2.py '+file)
y=move(file.split('.')[0]+'.cleaned.'+file.split('.')[1],'..')
os.remove(file)
os.chdir('..')
san()
exit()
Expand Down

0 comments on commit f3ead0d

Please sign in to comment.