2020def san ():
2121 cls ()
2222 print ('\n |------ Metadata Removal Tool ------|\n ' )
23+ print (' Please select an option from the following:' )
2324 print (' 1)Remove Metadata from a image.' )
2425 print (' 2)Remove Metadata from a video.' )
2526 print (' 3)Remove Metadata from a audio.' )
2627 print (' 4)Remove Metadata from a Torrent.' )
2728 print (' 5)Remove Metadata from all images in folder.' )
2829 print (' 6)Remove Metadata from all videos in folder.' )
2930 print (' 7)View Metadata in a file.' )
30- x = input ('\n Enter command(1,2,3,4,5,6 or 7):' )
31+ print (' c)Close.' )
32+ x = input ('\n Enter command(1,2,3,4,5,6,7 or c):' )
3133 if x == '1' :
3234 file = input ('\n Enter image name:' )
3335 singly (file ,'i' )
34- san ()
35- exit ()
3636 elif x == '2' :
3737 file = input ('\n Enter Video name:' )
3838 singly (file ,'v' )
39- san ()
40- exit ()
4139 elif x == '3' :
4240 file = input ('\n Enter Audio File:' )
4341 y = copy (file ,'MRT' )
@@ -46,8 +44,6 @@ def san():
4644 y = move (file .split ('.' )[0 ]+ '.cleaned.' + file .split ('.' )[1 ],'..' )
4745 os .remove (file )
4846 os .chdir ('..' )
49- san ()
50- exit ()
5147 elif x == '4' :
5248 file = input ('\n Enter Torrent File:' )
5349 y = copy (file ,'MRT' )
@@ -56,16 +52,10 @@ def san():
5652 y = move (file .split ('.' )[0 ]+ '.cleaned.' + file .split ('.' )[1 ],'..' )
5753 os .remove (file )
5854 os .chdir ('..' )
59- san ()
60- exit ()
6155 elif x == '5' :
6256 bulk ()
63- san ()
64- exit ()
6557 elif x == '6' :
6658 bulk1 ()
67- san ()
68- exit ()
6959 elif x == '7' :
7060 exiftool ()
7161 rb = input (' Enter Filename:' )
@@ -76,13 +66,8 @@ def san():
7666 exit (0 )
7767 meta (rb )
7868 wait ()
79- san ()
80- exit ()
81- elif x .lower ()== 'mm' :
82- san ()
8369 elif x .lower ()== 'c' or x .lower ()== 'close' :
8470 exit ()
85- else :
86- san ()
8771
88- san ()
72+ while (True ):
73+ san ()
0 commit comments