refactor!: change notifier timeout config to seconds

BREAKING CHANGE: change notification timeout from minutes to seconds in
config.
This commit is contained in:
Alpha
2025-01-05 22:04:09 +05:30
parent 3c5106c32c
commit e39c992883
3 changed files with 3 additions and 6 deletions

View File

@@ -43,7 +43,6 @@
</details>
## Installation
![Windows](https://img.shields.io/badge/-Windows_x64-blue.svg?style=for-the-badge&logo=windows)
@@ -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.
@@ -773,7 +771,7 @@ rofi_theme_input =
rofi_theme_confirm =
notification_duration = 2
notification_duration = 120
sub_lang = eng
@@ -814,7 +812,6 @@ format = best[height<=1080]/bestvideo[height<=1080]+bestaudio/best
player = mpv
```
## Contributing
pr's are highly welcome

View File

@@ -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:

View File

@@ -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",