File tree 1 file changed +1
-3
lines changed
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 15
15
import threading
16
16
import time
17
17
import zipfile
18
- import chardet
19
18
import mutagen.flac
20
19
import mutagen.id3
21
20
import mutagen.mp3
@@ -2660,11 +2659,10 @@ def OutSideUnArchive(self):
2660
2659
os.makedirs(current_paths, exist_ok=True)
2661
2660
os.chdir(current_paths)
2662
2661
for info in ExtractZip.infolist():
2663
- enc = chardet.detect(info.orig_filename.encode())['encoding']
2664
2662
try:
2665
2663
info.filename = info.orig_filename.encode('cp437').decode(enc)
2666
2664
except:
2667
- info.filename = info.orig_filename.encode(enc ).decode(enc)
2665
+ info.filename = info.orig_filename.encode('utf-8' ).decode(enc)
2668
2666
if os.sep != "/" and os.sep in info.filename:
2669
2667
info.filename = info.filename.replace(os.sep, "/")
2670
2668
ExtractZip.extract(info)
You can’t perform that action at this time.
0 commit comments