Skip to content

Commit

Permalink
fix variable types in two conditions which always returned False.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lich-Corals committed Mar 24, 2024
1 parent cd254e8 commit 4754713
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nautilus-fileconverter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/python3 -OOt

# --- Version number ---
converterVersion = "001002005" # Change the number if you want to trigger an update.
converterVersion = "001002006" # Change the number if you want to trigger an update.

# --- Imports ---

Expand Down Expand Up @@ -257,7 +257,7 @@ def convert_image(menu, format, files):
for file in files:
if 'extension' not in format:
format['extension'] = format['name']
if type(file) == "<class '__gi__.NautilusVFSFile'>":
if str(type(file)) == "<class '__gi__.NautilusVFSFile'>":
file_path = Path(unquote(urlparse(file.get_uri()).path))
else:
file_path = file
Expand Down Expand Up @@ -302,7 +302,7 @@ def convert_image(menu, format, files):
def convert_ffmpeg(menu, format, files):
print(format)
for file in files:
if type(file) == "<class '__gi__.NautilusVFSFile'>":
if str(type(file)) == "<class '__gi__.NautilusVFSFile'>":
from_file_path = Path(unquote(urlparse(file.get_uri()).path))
else:
from_file_path = file
Expand Down

0 comments on commit 4754713

Please sign in to comment.