From bb625c5f8c38cb6d9caf9f1ded6cff5c3e6b2545 Mon Sep 17 00:00:00 2001 From: cira0100 <40918547+cira0100@users.noreply.github.com> Date: Mon, 18 May 2020 02:52:20 +0200 Subject: Update OsuSongParser.py --- OsuSongParser.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OsuSongParser.py') diff --git a/OsuSongParser.py b/OsuSongParser.py index f5da922..e8b4272 100644 --- a/OsuSongParser.py +++ b/OsuSongParser.py @@ -10,17 +10,18 @@ for filename in os.listdir(s): sum=sum+1 for filename in os.listdir(s): test=regexComp.search(filename) - songName=filename[len(test.group(0))+1:] + songName=filename[len(test.group(0))+1:]+".mp3" path=os.path.join(s,filename) sum=sum-1 print("Files left ........ "+str(sum)) for name in os.listdir(path): if(regexMp3.search(name)): shutil.copy(os.path.join(path,name),cwd) - os.rename(os.path.join(cwd,name),os.path.join(cwd,songName,".mp3")) + os.rename(os.path.join(cwd,name),os.path.join(cwd,songName)) break print("Done") + -- cgit v1.2.3