Closed OutOfGears closed 5 years ago
I can confirm setting Popen(encodig="utf-8") fixed alot of the bytes not str issues how ever it might break something further down the line
It took me a day of tinkering, but now both Direct Unpack, regular Unrar and Par2 seem to work. Even managed to test some unicode-downloads.
platform_btou
with Popen
because we cannot use encoding
parameter, which was only added in Python 3.6 and we also want to support Python 3.5universal_newlines
/text
of Popen
(parameter was renamed) and set it to True
, but this doesn't seem to work for unicode downloads. For some reason it breaks on special outputs.
2019-01-21 14:36:28,313::ERROR::[newsunpack:534] Error "startswith first arg must be bytes or a tuple of bytes, not str" while running rar_unpack on removed.720p.HEVC.x265-MeGusta