Skip to content

Commit

Permalink
Fully linted code
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCaptain989 committed Dec 10, 2024
1 parent 8810bd0 commit aaf2c5e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
File renamed without changes.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ The syntax for the command-line is:

Option|Argument|Description
---|---|---
`-f`, `--file`|`<subtitle_file>`|The full path and file name to a subtitle file. In Bazarr, you should use the `{{subtitles}}` variable.
`-f`, `--file`|`<subtitle_file>`|The full path and filename to a subtitle file. In Bazarr, you should use the `{{subtitles}}` variable.
`-d`, `--debug`|`[<level>]`|Enables debug logging. Level is optional.<br/>Default of 1 (low)<br/>2 includes extra output
`-l`, `--log`|`<log_file>`|The log file name<br/>Default of `/config/log/cleansubs.log`
`-l`, `--log`|`<log_file>`|The log filename<br/>Default of `/config/log/cleansubs.log`
`--help`| |Display help and exit.
`--version`| |Display version and exit.

Expand Down Expand Up @@ -63,7 +63,7 @@ By default, a separate log file is therefore created for script activity called:

`/config/log/cleansubs.log`

This log must be inspected or downloaded outside of Bazarr. The log file name can be modified with the `--log` command-line option.
This log must be inspected or downloaded outside of Bazarr. The log filename can be modified with the `--log` command-line option.

Script activity, including errors, will appear in both the script log and the native Bazarr log.

Expand All @@ -72,7 +72,6 @@ Log rotation is performed with 2 log files of 512KB each being kept.
___

# Credits

This would not be possible without the following:

[Bazarr](https://www.bazarr.media/ "Bazarr homepage")
Expand Down
1 change: 1 addition & 0 deletions cleansubs.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ export cleansubs_tempsub="$(mktemp -u -- "${cleansubs_file}.tmp.XXXXXX")"
[ $cleansubs_debug -ge 1 ] && echo "Debug|Using temporary file \"$cleansubs_tempsub\"" | log

#### BEGIN MAIN
# shellcheck disable=SC2002
cat "$cleansubs_file" | dos2unix | awk -v Debug=$cleansubs_debug \
-v SubTitle="$cleansubs_file" \
-v TempSub="$cleansubs_tempsub" \
Expand Down

0 comments on commit aaf2c5e

Please sign in to comment.