Skip to content

Commit

Permalink
Merge pull request #1 from z1nc0r3/v1.0.1
Browse files Browse the repository at this point in the history
Fix output file name formatting
  • Loading branch information
z1nc0r3 authored Mar 30, 2024
2 parents 3b6a692 + f0bfa74 commit 28b5df0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ def query(self, query):
)

if response.status_code == 200:
file_name = file_name.replace(" ", "_")

with open(f"{save_path}/{file_name}.png", "wb") as out:
out.write(response.content)

Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Name": "Remove.bg",
"Description": "Remove backgrounds from images",
"Author": "z1nc0r3",
"Version": "1.0.0",
"Version": "1.0.1",
"Language": "python",
"Website": "https://github.com/z1nc0r3/remove.bg",
"IcoPath": "Images\\app.png",
Expand Down

0 comments on commit 28b5df0

Please sign in to comment.