Skip to content

Commit

Permalink
Update requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
emericg committed Nov 18, 2024
1 parent e219807 commit 6e346e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions OpenSubtitlesDownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
def checkFileValidity(path):
"""Check mimetype and/or file extension to detect valid video file"""
if os.path.isfile(path) is False:
superPrint("info", "File not found", "The file provided was not found:\n<i>" + path + "</i>")
superPrint("info", "File not found", f"The file provided was not found:\n<i>{path}</i>")
return False

fileMimeType, encoding = mimetypes.guess_type(path)
Expand Down Expand Up @@ -563,11 +563,11 @@ def pythonChecker():

def dependencyChecker():
"""Check the availability of tools used as dependencies"""
if opt_gui != 'cli':
for tool in ['gunzip', 'wget']:
if opt_gui == 'gnome':
for tool in ['wget']:
path = shutil.which(tool)
if path is None:
superPrint("error", "Missing dependency!", "The <b>'" + tool + "'</b> tool is not available, please install it!")
superPrint("error", "Missing dependency!", "<b>" + tool + "</b> is not available, please install it!")
return False
return True

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ The subtitles search and download service is powered by [opensubtitles.com](http

#### Requirements

- Python 3
- zenity (only needed for GNOME based desktop environments)
- kdialog (only needed for KDE based desktop environments)
- Common unix tools (only needed for GUIs): wget, ps & grep (GUI autodetection)
- `python` (version 3.6+)
- `zenity` (only needed for GNOME based desktop environments)
- `kdialog` (only needed for KDE based desktop environments)
- Common unix tools `ps` & `grep` (for GUI autodetection) and `wget` (for GNOME downloads)

#### Quick installation (nautilus script, with GNOME desktop environment)

Expand Down

0 comments on commit 6e346e4

Please sign in to comment.