Skip to content

Commit

Permalink
Merge pull request #50 from sudoAlphaX/notify-timeout
Browse files Browse the repository at this point in the history
refactor!: change notifier timeout config to seconds
  • Loading branch information
Benexl authored Jan 5, 2025
2 parents 6c0e0cc + e39c992 commit b38f667
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@

</details>


## Installation

![Windows](https://img.shields.io/badge/-Windows_x64-blue.svg?style=for-the-badge&logo=windows)
Expand Down Expand Up @@ -210,7 +209,6 @@ The only required external dependency, unless you won't be streaming, is [MPV](h
- [syncplay](https://syncplay.pl/) to enable watch together.
- [feh](https://github.com/derf/feh) used in manga mode


## Usage

The project offers a featureful command-line interface and MPV interface through the use of python-mpv.
Expand Down Expand Up @@ -773,7 +771,7 @@ rofi_theme_input =

rofi_theme_confirm =

notification_duration = 2
notification_duration = 120

sub_lang = eng

Expand Down Expand Up @@ -814,7 +812,6 @@ format = best[height<=1080]/bestvideo[height<=1080]+bestaudio/best
player = mpv
```


## Contributing

pr's are highly welcome
Expand Down
2 changes: 1 addition & 1 deletion fastanime/cli/commands/anilist/notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def notifier(config: "Config"):

notified = os.path.join(APP_DATA_DIR, "last_notification.json")
anime_image_path = os.path.join(APP_CACHE_DIR, "notification_image")
notification_duration = config.notification_duration * 60
notification_duration = config.notification_duration
notification_image_path = ""

if not config.user:
Expand Down
2 changes: 1 addition & 1 deletion fastanime/cli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Config(object):
"icons": "false",
"image_previews": "True" if S_PLATFORM != "win32" else "False",
"normalize_titles": "True",
"notification_duration": "2",
"notification_duration": "120",
"max_cache_lifetime": "03:00:00",
"per_page": "15",
"player": "mpv",
Expand Down

0 comments on commit b38f667

Please sign in to comment.