Skip to content

Commit

Permalink
Update to v1.12.4
Browse files Browse the repository at this point in the history
  • Loading branch information
BlafKing committed Sep 27, 2023
1 parent 30c1575 commit 6232b9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ https://github.com/BlafKing/sd-civitai-browser/assets/9644716/ea873c3e-a7e4-44a8

# Changelog 📋

<h3>v1.12.4</h3>

* Feature: You can now refresh by pressing Ctrl+Enter and Alt+Enter
* Bug fix: Auto unpack feature was unpacking unintended archives, now only unpacks .zip

---
<h3>v1.12.3</h3>

* New setting: Option to toggle automatically unpacking .zip models.
Expand Down
3 changes: 1 addition & 2 deletions scripts/civitai_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import re
import random
import platform
import zipfile
import socket
import stat
import json
Expand Down Expand Up @@ -398,7 +397,7 @@ def download_create_thread(download_finish, url, file_name, preview_html, create
if os.path.exists(path_to_new_file):
if unpack_zip:
try:
if zipfile.is_zipfile(path_to_new_file):
if path_to_new_file.endswith('.zip'):
directory = Path(os.path.dirname(path_to_new_file))
zip_handler = ZipHandler(path_to_new_file)
zip_handler.extract_all(directory)
Expand Down

0 comments on commit 6232b9d

Please sign in to comment.