Upgrade unrar to master branch to fix Utf8Error

This commit is contained in:
2021-07-23 19:27:21 -04:00
parent e69165fe5a
commit 81f12da99c
3 changed files with 14 additions and 8 deletions

View File

@@ -391,7 +391,7 @@ pub async fn main() -> Result<()> {
let mut plugin_file_paths = Vec::new();
let list =
Archive::new(temp_file_path.to_string_lossy().to_string()).list();
Archive::new(&temp_file_path.to_string_lossy().to_string())?.list();
if let Ok(list) = list {
for entry in list {
if let Ok(entry) = entry {
@@ -421,7 +421,7 @@ pub async fn main() -> Result<()> {
if plugin_file_paths.len() > 0 {
info!("uncompressing downloaded archive");
let extract =
Archive::new(temp_file_path.to_string_lossy().to_string())
Archive::new(&temp_file_path.to_string_lossy().to_string())?
.extract_to(temp_dir.path().to_string_lossy().to_string());
extract
.expect("failed to extract")
@@ -441,7 +441,7 @@ pub async fn main() -> Result<()> {
&mut plugins_archive,
&db_file,
&db_mod,
file_path,
&file_path.to_string_lossy(),
)
.await?;
}